static int GetUIRootRect(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); WCG.UIMgr obj = (WCG.UIMgr)ToLua.CheckObject <WCG.UIMgr>(L, 1); UnityEngine.Rect o = obj.GetUIRootRect(); ToLua.PushValue(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }