static int OnEndDrag(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UIDragSensor obj = (UIDragSensor)ToLua.CheckObject(L, 1, typeof(UIDragSensor)); UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); obj.OnEndDrag(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_controlID(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIDragSensor obj = (UIDragSensor)o; int ret = obj.controlID; LuaDLL.lua_pushinteger(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index controlID on a nil value" : e.Message)); } }
static int set_controlID(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIDragSensor obj = (UIDragSensor)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.controlID = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index controlID on a nil value" : e.Message)); } }
static int set_uiScrollRect(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIDragSensor obj = (UIDragSensor)o; UIScrollRect arg0 = (UIScrollRect)ToLua.CheckUnityObject(L, 2, typeof(UIScrollRect)); obj.uiScrollRect = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uiScrollRect on a nil value" : e.Message)); } }
static int get_uiScrollRect(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIDragSensor obj = (UIDragSensor)o; UIScrollRect ret = obj.uiScrollRect; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uiScrollRect on a nil value" : e.Message)); } }