static int set_m_onEndDrag(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.DragControl obj       = (UI.DragControl)o;
            System.Action  arg0      = null;
            LuaTypes       funcType2 = LuaDLL.lua_type(L, 2);

            if (funcType2 != LuaTypes.LUA_TFUNCTION)
            {
                arg0 = (System.Action)ToLua.CheckObject(L, 2, typeof(System.Action));
            }
            else
            {
                LuaFunction func = ToLua.ToLuaFunction(L, 2);
                arg0 = DelegateFactory.CreateDelegate(typeof(System.Action), func) as System.Action;
            }

            obj.m_onEndDrag = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_onEndDrag on a nil value" : e.Message));
        }
    }
 static int OnDrag(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UI.DragControl obj = (UI.DragControl)ToLua.CheckObject(L, 1, typeof(UI.DragControl));
         UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));
         obj.OnDrag(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int set_m_canDrag(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.DragControl obj  = (UI.DragControl)o;
            bool           arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.m_canDrag = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_canDrag on a nil value" : e.Message));
        }
    }
    static int set_m_data(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.DragControl obj  = (UI.DragControl)o;
            object         arg0 = ToLua.ToVarObject(L, 2);
            obj.m_data = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_data on a nil value" : e.Message));
        }
    }
    static int get_m_onEndDrag(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.DragControl obj = (UI.DragControl)o;
            System.Action  ret = obj.m_onEndDrag;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_onEndDrag on a nil value" : e.Message));
        }
    }
    static int get_m_canDrag(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.DragControl obj = (UI.DragControl)o;
            bool           ret = obj.m_canDrag;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_canDrag on a nil value" : e.Message));
        }
    }