PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

AspectType

AspectType

Used by UIAspectRatioConstraint/AspectType to control the sizing behavior.


Enums

Name Value Description

FitWithinMaxSize

0

Makes the element the maximum size it can be within the current possible AbsoluteSize of the element while maintaining the aspect ratio

ScaleWithParentSize

1

Scales the element to the largest size it can fit inside the parent element’s maximum size while maintaining the aspect ratio

Referenced by:

  • UIAspectRatioConstraint/AspectType