Version: 2019.1

AspectMode

enumeration

Switch to Manual

Description

Specifies a mode to use to enforce an aspect ratio.

Variables

NoneThe aspect ratio is not enforced.
WidthControlsHeightChanges the height of the rectangle to match the aspect ratio.
HeightControlsWidthChanges the width of the rectangle to match the aspect ratio.
FitInParentSizes the rectangle such that it's fully contained within the parent rectangle.
EnvelopeParentSizes the rectangle such that the parent rectangle is fully contained within.