static public int GetPixelAdjustedRect(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.Graphic self = (UnityEngine.UI.Graphic)checkSelf(l); var ret = self.GetPixelAdjustedRect(); pushValue(l, true); pushValue(l, ret); return(2); } 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 }
static int GetPixelAdjustedRect(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 1); UnityEngine.UI.Graphic obj = (UnityEngine.UI.Graphic)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UnityEngine.UI.Graphic"); Rect o = obj.GetPixelAdjustedRect(); LuaScriptMgr.PushValue(L, o); return(1); }
static int GetPixelAdjustedRect(IntPtr L) { L.ChkArgsCount(1); UnityEngine.UI.Graphic obj = (UnityEngine.UI.Graphic)L.ChkUnityObjectSelf(1, "UnityEngine.UI.Graphic"); Rect o = obj.GetPixelAdjustedRect(); L.PushLightUserData(o); return(1); }
static public int GetPixelAdjustedRect(IntPtr l) { try { UnityEngine.UI.Graphic self = (UnityEngine.UI.Graphic)checkSelf(l); var ret = self.GetPixelAdjustedRect(); pushValue(l, ret); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int GetPixelAdjustedRect(IntPtr l) { try{ UnityEngine.UI.Graphic self = (UnityEngine.UI.Graphic)checkSelf(l); UnityEngine.Rect ret = self.GetPixelAdjustedRect(); pushValue(l, ret); return(1); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
static int QPYX_GetPixelAdjustedRect_YXQP(IntPtr L_YXQP) { try { ToLua.CheckArgsCount(L_YXQP, 1); UnityEngine.UI.Graphic QPYX_obj_YXQP = (UnityEngine.UI.Graphic)ToLua.CheckObject <UnityEngine.UI.Graphic>(L_YXQP, 1); UnityEngine.Rect QPYX_o_YXQP = QPYX_obj_YXQP.GetPixelAdjustedRect(); ToLua.PushValue(L_YXQP, QPYX_o_YXQP); return(1); } catch (Exception e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP)); } }
static int GetPixelAdjustedRect(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityEngine.UI.Graphic obj = (UnityEngine.UI.Graphic)ToLua.CheckObject <UnityEngine.UI.Graphic>(L, 1); UnityEngine.Rect o = obj.GetPixelAdjustedRect(); ToLua.PushValue(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetPixelAdjustedRect(IntPtr L) { #if UNITY_EDITOR ToluaProfiler.AddCallRecord("UnityEngine.UI.Graphic.GetPixelAdjustedRect"); #endif try { ToLua.CheckArgsCount(L, 1); UnityEngine.UI.Graphic obj = (UnityEngine.UI.Graphic)ToLua.CheckObject <UnityEngine.UI.Graphic>(L, 1); UnityEngine.Rect o = obj.GetPixelAdjustedRect(); ToLua.PushValue(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }