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

UIAspectRatioConstraint

AspectType

AspectType determines what limits the maximum size of the element.

  • When set to FitWithinMaxSize, the constraint will make the object the maximum size it can be within its own GuiBase2d/AbsoluteSize.
  • When set to ScaleWithParentSize, the UI element’s maximum size will be the size of the parent while still maintaining the aspect ratio…