PanelScaleMode
Options that specify how elements in the panel scale when the screen size changes. See PanelSettings.scaleMode.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Enum
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public enum PanelScaleMode
Fields
Value | Description |
|---|---|
| ConstantPhysicalSize | Elements stay the same physical size (displayed size) regardless of screen size and resolution. |
| ConstantPixelSize | Elements stay the same size, in pixels, regardless of screen size. |
| ScaleWithScreenSize | Elements get bigger when the screen size increases, and smaller when it decreases. |