C# Class UnityEngine.UI.MaskUtilities

Mask related utility class.

Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

FindRootSortOverrideCanvas() public static méthode

Find a root Canvas.

public static FindRootSortOverrideCanvas ( Transform start ) : Transform
start UnityEngine.Transform Search start.
Résultat UnityEngine.Transform

GetRectMaskForClippable() public static méthode

Find the correct RectMask2D for a given IClippable.

public static GetRectMaskForClippable ( IClippable clippable ) : RectMask2D
clippable IClippable
Résultat RectMask2D

GetRectMasksForClip() public static méthode

public static GetRectMasksForClip ( RectMask2D clipper, List masks ) : void
clipper RectMask2D
masks List
Résultat void

GetStencilDepth() public static méthode

Find the stencil depth for a given element.

public static GetStencilDepth ( Transform transform, Transform stopAfter ) : int
transform UnityEngine.Transform
stopAfter UnityEngine.Transform
Résultat int

IsDescendantOrSelf() public static méthode

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.
Résultat bool

Notify2DMaskStateChanged() public static méthode

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

public static Notify2DMaskStateChanged ( Component mask ) : void
mask UnityEngine.Component
Résultat void

NotifyStencilStateChanged() public static méthode

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

public static NotifyStencilStateChanged ( Component mask ) : void
mask UnityEngine.Component
Résultat void