This version of Unity is unsupported.

Background

struct in UnityEngine.UIElements

/

Implemented in:UnityEngine.UIElementsModule

Description

Describes a VisualElement background.

Properties

textureThe texture to display as a background. You cannot set this and Background.vectorImage at the same time.
vectorImageThe VectorImage to display as a background. You cannot set this and Background.texture at the same time.

Static Methods

FromTexture2DCreates a background from a Texture2D.
FromVectorImageCreates a background from a VectorImage.