Enum CanvasScaler.ScreenMatchMode
Scale the canvas area with the width as reference, the height as reference, or something in between.
Namespace: UnityEngine.UI
Syntax
public enum ScreenMatchMode
Fields
| Name | Description | Value |
|---|---|---|
| MatchWidthOrHeight | Scale the canvas area with the width as reference, the height as reference, or something in between. |
0 |
| Expand | Expand the canvas area either horizontally or vertically, so the size of the canvas will never be smaller than the reference. |
1 |
| Shrink | Crop the canvas area either horizontally or vertically, so the size of the canvas will never be larger than the reference. |
2 |