static int SetSpriteOffset(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); ImageEx obj = (ImageEx)ToLua.CheckObject <ImageEx>(L, 1); UnityEngine.Rect arg0 = StackTraits <UnityEngine.Rect> .Check(L, 2); obj.SetSpriteOffset(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }