static int Load(IntPtr L)
    {
        L.ChkArgsCount(5);
        ZFrame.UGUI.UITexture obj = (ZFrame.UGUI.UITexture)L.ChkUnityObjectSelf(1, "ZFrame.UGUI.UITexture");
        var arg0 = L.ToLuaString(2);

        ZFrame.Asset.DelegateObjectLoaded arg1 = null;
        LuaTypes funcType3 = L.Type(3);

        if (funcType3 != LuaTypes.LUA_TFUNCTION)
        {
            arg1 = (ZFrame.Asset.DelegateObjectLoaded)L.ChkUserData(3, typeof(ZFrame.Asset.DelegateObjectLoaded));
        }
        else
        {
            LuaFunction func = L.ChkLuaFunction(3);
            arg1 = (param0, param1) =>
            {
                int top = func.BeginPCall();
                L.PushLightUserData(param0);
                L.PushAnyObject(param1);
                func.PCall(top, 2);
                func.EndPCall(top);
            };
        }

        var arg2 = L.ToAnyObject(4);
        var arg3 = L.ChkBoolean(5);

        obj.Load(arg0, arg1, arg2, arg3);
        return(0);
    }
    static int Tween(IntPtr L)
    {
        L.ChkArgsCount(4);
        ZFrame.UGUI.UITexture obj = (ZFrame.UGUI.UITexture)L.ChkUnityObjectSelf(1, "ZFrame.UGUI.UITexture");
        var arg0 = L.ToAnyObject(2);
        var arg1 = L.ToAnyObject(3);
        var arg2 = (float)L.ChkNumber(4);

        ZFrame.Tween.ZTweener o = obj.Tween(arg0, arg1, arg2);
        L.PushLightUserData(o);
        return(1);
    }
    static int get_grayscale(IntPtr L)
    {
        object o = L.ToUserData(1);

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

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

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

        L.PushBoolean(obj.grayscale);
        return(1);
    }
    static int set_texturePath(IntPtr L)
    {
        object o = L.ToUserData(1);

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

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

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

        obj.texturePath = L.ChkLuaString(3);
        return(0);
    }
    static int set_type(IntPtr L)
    {
        object o = L.ToUserData(1);

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

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

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

        obj.type = (UnityEngine.UI.Image.Type)L.ChkEnumValue(3, typeof(UnityEngine.UI.Image.Type));
        return(0);
    }