Enum AspectRatioFitter.AspectMode
Specifies a mode to use to enforce an aspect ratio.
Namespace: UnityEngine.UI
Assembly: UnityEngine.UI.dll
Syntax
public enum AspectRatioFitter.AspectMode
Fields
Name | Description |
---|---|
EnvelopeParent | Sizes the rectangle such that the parent rectangle is fully contained within. |
FitInParent | Sizes the rectangle such that it's fully contained within the parent rectangle. |
HeightControlsWidth | Changes the width of the rectangle to match the aspect ratio. |
None | The aspect ratio is not enforced |
WidthControlsHeight | Changes the height of the rectangle to match the aspect ratio. |