Enum PanelScaler.ScreenMatchMode
A mode used to scale the Panel area if the aspect ratio of the current resolution does not fit the reference resolution.
Namespace: Unity.UIElements.Runtime
Assembly: solution.dll
Syntax
public enum PanelScaler.ScreenMatchMode
Fields
| Name | Description |
|---|---|
| Expand | Expand the Panel area either horizontally or vertically, so the size of the Panel will never be smaller than the reference. |
| MatchWidthOrHeight | Scale the Panel area with the width as reference, the height as reference, or something in between. |
| Shrink | Crop the Panel area either horizontally or vertically, so the size of the Panel will never be larger than the reference. |