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