DrawPhase
Classifies the visual phase a draw belongs to in element rendering.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Enum
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
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 draws so an effect doesn't distort stencil geometry.
Fields
Value | Description |
|---|---|
| Background | Element's background fill (color or background image). |
| Border | Element's border strokes. |
| Content | Element's content — text, image, custom geometry from |
| Mask | Geometry that defines a stencil-clipping mask region for this element. |