Scripting API

MaskUtilities

class in UnityEngine.UI · UnityEngine.UI

8 of 8 of Unity's members
In Tassix

Finding masks and clippers in a graphic's parents.

Methods 7

static Transform? FindRootSortOverrideCanvas(Transform start)
static RectMask2D? GetRectMaskForClippable(IClippable clippable)

The nearest enabled RectMask2D above the clippable (not on its own object), within its canvas.

static void GetRectMasksForClip(RectMask2D clipper, List<RectMask2D> masks)

The enabled RectMask2Ds from the clipper's own object up, within its canvas.

static int GetStencilDepth(Transform transform, Transform stopAfter)
static bool IsDescendantOrSelf(Transform father, Transform child)
static void Notify2DMaskStateChanged(Component mask)
static void NotifyStencilStateChanged(Component mask)