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

Cull() public method

Perform the clipping on all registered IClipper.

public Cull ( ) : void
return void
        public void Cull()
        {
            for (int i = 0; i < this.m_Clippers.Count; i++)
            {
                this.m_Clippers[i].PerformClipping();
            }
        }

Usage Example

 static public int Cull(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         UnityEngine.UI.ClipperRegistry self = (UnityEngine.UI.ClipperRegistry)checkSelf(l);
         self.Cull();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
All Usage Examples Of UnityEngine.UI.ClipperRegistry::Cull