Background

struct in UnityEngine.UIElements

Switch to Manual

Description

Describes a VisualElement background.

Variables

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 Functions

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