BackgroundSizeType
Defines the size of the background.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Enum
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public enum BackgroundSizeType
Fields
Value | Description |
|---|---|
| Contain | Resize the background image to make sure the image is fully visible. |
| Cover | Resize the background image to cover the entire container, even if it has to stretch the image or cut a little bit off one of the edges. |
| Length | Determines if the size of the background image comes from the BackgroundSize.x and BackgroundSize.y length values. |