# aspectRatio

> Sets a preferred aspect ratio for the box, which will be used in the calculation of auto sizes and some other layout functions.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
StyleRatio aspectRatio { get; set; }
```
