StyleBackground
Style value that can be either a Background or a StyleKeyword.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Implements: IStyleValue<Background>, IEquatable<StyleBackground>
public struct StyleBackground : IStyleValue<Background>, IEquatable<StyleBackground>
Constructors
Constructor | Description |
|---|---|
| StyleBackground(UnityEngine.Sprite) | Creates from either a Background or a StyleKeyword. |
| StyleBackground(UnityEngine.Texture2D) | Creates from either a Background or a StyleKeyword. |
| StyleBackground(UnityEngine.UIElements.Background) | Creates from either a Background or a StyleKeyword. |
| StyleBackground(UnityEngine.UIElements.StyleKeyword) | Creates from either a Background or a StyleKeyword. |
| StyleBackground(UnityEngine.UIElements.VectorImage) | Creates from either a Background or a StyleKeyword. |
Properties
Property | Description |
|---|---|
| keyword | The style keyword. |
| value | The Background value. |