Enum PanelScreenMatchMode
Options that specify how to scale the panel area when the aspect ratio of the current screen resolution does not match the reference resolution. See screenMatchMode.
Namespace: UnityEngine.UIElements
Syntax
public enum PanelScreenMatchMode : int
Fields
Name | Description | Value |
---|---|---|
MatchWidthOrHeight | Scales the panel area using width, height, or a mix of the two as a reference. |
0 |
Shrink | Crops the panel area horizontally or vertically so the panel size never exceeds the reference resolution. |
1 |
Expand | Expand the panel area horizontally or vertically so the panel size is never smaller than the reference resolution. |
2 |