Enum PanelScaleMode
Options that specify how elements in the panel scale when the screen size changes. See scaleMode.
Namespace: UnityEngine.UIElements
Syntax
public enum PanelScaleMode : int
Fields
Name | Description | Value |
---|---|---|
ConstantPixelSize | Elements stay the same size, in pixels, regardless of screen size. |
0 |
ConstantPhysicalSize | Elements stay the same physical size (displayed size) regardless of screen size and resolution. |
1 |
ScaleWithScreenSize | Elements get bigger when the screen size increases, and smaller when it decreases. |
2 |