static int set_onAction(IntPtr L)
    {
        object o = L.ToUserData(1);

        ZFrame.UGUI.UIDropdown obj = (ZFrame.UGUI.UIDropdown)o;

        if (obj == null)
        {
            LuaTypes types = L.Type(1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name onAction");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index onAction on a nil value");
            }
        }

        LuaTypes funcType = L.Type(3);

        if (funcType != LuaTypes.LUA_TFUNCTION)
        {
            obj.onAction = (UnityEngine.Events.UnityAction <ZFrame.UGUI.UIDropdown>)L.ChkUserData(3, typeof(UnityEngine.Events.UnityAction <ZFrame.UGUI.UIDropdown>));
        }
        else
        {
            LuaFunction func = L.ToLuaFunction(3);
            obj.onAction = (param0) =>
            {
                int top = func.BeginPCall();
                L.PushLightUserData(param0);
                func.PCall(top, 1);
                func.EndPCall(top);
            };
        }
        return(0);
    }
    static int get_onAction(IntPtr L)
    {
        object o = L.ToUserData(1);

        ZFrame.UGUI.UIDropdown obj = (ZFrame.UGUI.UIDropdown)o;

        if (obj == null)
        {
            LuaTypes types = L.Type(1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name onAction");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index onAction on a nil value");
            }
        }

        L.PushUData(obj.onAction);
        return(1);
    }