C# 클래스 UnityEngine.UI.MaskUtilities

Mask related utility class.

파일 보기 프로젝트 열기: CarlosHBC/UnityDecompiled 1 사용 예제들

공개 메소드들

메소드 설명
FindRootSortOverrideCanvas ( Transform start ) : Transform

Find a root Canvas.

GetRectMaskForClippable ( IClippable clippable ) : RectMask2D

Find the correct RectMask2D for a given IClippable.

GetRectMasksForClip ( RectMask2D clipper, List masks ) : void
GetStencilDepth ( Transform transform, Transform stopAfter ) : int

Find the stencil depth for a given element.

IsDescendantOrSelf ( Transform father, Transform child ) : bool

Helper function to determine if the child is a descendant of father or is father.

Notify2DMaskStateChanged ( Component mask ) : void

Notify all IClippables under the given component that they need to recalculate clipping.

NotifyStencilStateChanged ( Component mask ) : void

Notify all IMaskable under the given component that they need to recalculate masking.

메소드 상세

FindRootSortOverrideCanvas() 공개 정적인 메소드

Find a root Canvas.

public static FindRootSortOverrideCanvas ( Transform start ) : Transform
start UnityEngine.Transform Search start.
리턴 UnityEngine.Transform

GetRectMaskForClippable() 공개 정적인 메소드

Find the correct RectMask2D for a given IClippable.

public static GetRectMaskForClippable ( IClippable clippable ) : RectMask2D
clippable IClippable
리턴 RectMask2D

GetRectMasksForClip() 공개 정적인 메소드

public static GetRectMasksForClip ( RectMask2D clipper, List masks ) : void
clipper RectMask2D
masks List
리턴 void

GetStencilDepth() 공개 정적인 메소드

Find the stencil depth for a given element.

public static GetStencilDepth ( Transform transform, Transform stopAfter ) : int
transform UnityEngine.Transform
stopAfter UnityEngine.Transform
리턴 int

IsDescendantOrSelf() 공개 정적인 메소드

Helper function to determine if the child is a descendant of father or is father.

public static IsDescendantOrSelf ( Transform father, Transform child ) : bool
father UnityEngine.Transform The transform to compare against.
child UnityEngine.Transform The starting transform to search up the hierarchy.
리턴 bool

Notify2DMaskStateChanged() 공개 정적인 메소드

Notify all IClippables under the given component that they need to recalculate clipping.

public static Notify2DMaskStateChanged ( Component mask ) : void
mask UnityEngine.Component
리턴 void

NotifyStencilStateChanged() 공개 정적인 메소드

Notify all IMaskable under the given component that they need to recalculate masking.

public static NotifyStencilStateChanged ( Component mask ) : void
mask UnityEngine.Component
리턴 void