The BackgroundImage
property of the BaseStyles
class represents the background-image
CSS property. It allows you to set a texture as the background image for a UI element.
The BackgroundImage
property of the BaseStyles
class represents the background-image
CSS property. It allows you to set a texture as the background image for a UI element.
To use the BackgroundImage
property, assign a Texture
object to it. This texture will be used as the background image for the UI element that the BaseStyles
is applied to.
// Example of setting a background image for a UI element var myStyles = new BaseStyles(); myStyles.BackgroundImage = Texture.Load("path/to/texture.png"); // Apply the styles to a UI element myUIElement.Styles = myStyles;