DominantAxis

Overview

DominantAxis is an Enum that defines the priority axis when specifying the size of GUI elements.

This is used in the DominantAxis property of UIAspectRatioConstraint and determines in which axis (horizontal or vertical) should be prioritized when UI elements scale larger than their parent.

Items

Name
Value
Description

Width

0

Prioritizes the horizontal axis (width).

Height

1

Prioritizes the vertical axis (height).

See also

UIAspectRatioConstraintchevron-right

Last updated