기술 자료

Unity Engine

Unity Engine

DrawPhase

Classifies the visual phase a draw belongs to in element rendering.
읽는 시간 1분최근 업데이트: 한 달 전

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.