Clear() 개인적인 메소드

private Clear ( ) : void
리턴 void
예제 #1
0
 static public int Clear(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.CanvasRenderer self = (UnityEngine.CanvasRenderer)checkSelf(l);
         self.Clear();
         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
 }
 public void Disable()
 {
     updateCount    = 0;
     rendererCount  = 0;
     rectangleCount = 0;
     canvasRenderer.SetMaterial(null, null);
     canvasRenderer.Clear();
     gameObject.SetActive(false);
 }
예제 #3
0
 static public int Clear(IntPtr l)
 {
     try {
         UnityEngine.CanvasRenderer self = (UnityEngine.CanvasRenderer)checkSelf(l);
         self.Clear();
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int Clear(IntPtr l)
 {
     try{
         UnityEngine.CanvasRenderer self = (UnityEngine.CanvasRenderer)checkSelf(l);
         self.Clear();
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
 static int Clear(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UnityEngine.CanvasRenderer obj = (UnityEngine.CanvasRenderer)ToLua.CheckObject(L, 1, typeof(UnityEngine.CanvasRenderer));
         obj.Clear();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }