# DrawPhase

> Classifies the visual phase a draw belongs to in element rendering.

## Definition

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

```csharp
public enum DrawPhase : byte
```

## Remarks

Mirrors CSS's per-element paint phases (Background → Border → Content) with Mask as the stencil bracket. Lets mesh modifiers filter by intent — for example, skip [DrawPhase.Mask](/engine/6000.6/script-reference/unityengine/uielements/drawphase/mask.md) draws so an effect doesn't distort stencil geometry.

## Fields

| Value                                                                                        | Description                                                                                                                                                                |
| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Background](/engine/6000.6/script-reference/unityengine/uielements/drawphase/background.md) | Element's background fill (color or background image).                                                                                                                     |
| [Border](/engine/6000.6/script-reference/unityengine/uielements/drawphase/border.md)         | Element's border strokes.                                                                                                                                                  |
| [Content](/engine/6000.6/script-reference/unityengine/uielements/drawphase/content.md)       | Element's content — text, image, custom geometry from `generateVisualContent`, or [Painter2D](/engine/6000.6/script-reference/unityengine/uielements/painter2d.md) output. |
| [Mask](/engine/6000.6/script-reference/unityengine/uielements/drawphase/mask.md)             | Geometry that defines a stencil-clipping mask region for this element.                                                                                                     |
