---
name: DominantAxis
last_updated: 2026-06-10T23:09:13Z
type: enum
summary: "Used by UIAspectRatioConstraint.DominantAxis for resizing the object to maintain the aspect ratio."
---

# DominantAxis

Used by [UIAspectRatioConstraint.DominantAxis](/docs/reference/engine/classes/UIAspectRatioConstraint.md) for resizing the object
to maintain the aspect ratio.

**Type:** enum

## Description

Used by [UIAspectRatioConstraint.DominantAxis](/docs/reference/engine/classes/UIAspectRatioConstraint.md) to specify which axis is
used when setting the new size of the GUI element.

## Items

| Name | Value | Description |
|------|-------|-------------|
| `Width` | 0 | The X axis. |
| `Height` | 1 | The Y axis. |