UnityEngine.UI.ClipperRegistry.Register C# (CSharp) Method

Register() public static method

Register an IClipper.

public static Register ( IClipper c ) : void
c IClipper
return void
        public static void Register(IClipper c)
        {
            if (c != null)
            {
                instance.m_Clippers.AddUnique(c);
            }
        }

Usage Example

コード例 #1
0
 protected override void OnEnable()
 {
     base.OnEnable();
     m_ShouldRecalculateClipRects = true;
     ClipperRegistry.Register(this);
     MaskUtilities.Notify2DMaskStateChanged(this);
 }