Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DrawPhase

Classifies the visual phase a draw belongs to in element rendering.
Read time 1 minuteLast updated 7 days ago

Definition

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

BackgroundElement's background fill (color or background image).
BorderElement's border strokes.
ContentElement's content — text, image, custom geometry from
generateVisualContent
, or Painter2D output.
MaskGeometry that defines a stencil-clipping mask region for this element.