> For the complete documentation index, see [llms.txt](https://docs.overdare.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overdare.com/development/api-reference/enums/dominantaxis.md).

# 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

{% content-ref url="/pages/EScSNhQiHvJgf8GmuvoX" %}
[UIAspectRatioConstraint](/development/api-reference/classes/uiaspectratioconstraint.md)
{% endcontent-ref %}
