# LengthUnit

> Describes how to interpret a Length value.

## Definition

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

```csharp
public enum LengthUnit
```

## Fields

| Value                                                                                   | Description                                                                                                                                                 |
| --------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Percent](/engine/6000.6/script-reference/unityengine/uielements/lengthunit/percent.md) | Interprets length as a percentage, with 100 representing 100%. The value is not constrained and can range from negative numbers to values greater than 100. |
| [Pixel](/engine/6000.6/script-reference/unityengine/uielements/lengthunit/pixel.md)     | Interprets length as pixel.                                                                                                                                 |
