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); }
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)); } }