Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

DrawPhase

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

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

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.

Properties

Property 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.