MaskUtilities

class in UnityEngine.UI

切换到手册

描述

与遮罩相关的 Utility 类。

此类提供特定于遮罩的实用函数。

静态函数

FindRootSortOverrideCanvas查找根 Canvas。
GetRectMaskForClippable查找指定 IClippable 的正确 RectMask2D。
GetRectMasksForClip搜索应用于指定 RectMask2D 的所有 RectMask2D(包括自身)。
GetStencilDepth查找指定元素的模板深度。
IsDescendantOrSelfHelper 函数,用于确定子项是父项的后代还是父项。
Notify2DMaskStateChanged通知指定组件下的所有 IClippable,它们需要重新计算裁剪。
NotifyStencilStateChanged通知指定组件下的所有 IMaskable,它们需要重新计算遮罩。

Did you find this page useful? Please give it a rating: