ConvertScaleModeToBackgroundPosition(ScaleMode)
Converts ScaleMode to the equivalent BackgroundPosition property.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public static BackgroundPosition ConvertScaleModeToBackgroundPosition(ScaleMode scaleMode = ScaleMode.StretchToFill)
Parameters
The ScaleMode to convert.
Returns
Type | Description |
|---|---|
| BackgroundPosition | BackgroundPosition. |