static int SetNativeSize(IntPtr L)
 {
     L.ChkArgsCount(1);
     ZFrame.UGUI.UISprite obj = (ZFrame.UGUI.UISprite)L.ChkUnityObjectSelf(1, "ZFrame.UGUI.UISprite");
     obj.SetNativeSize();
     return(0);
 }
    static int Load(IntPtr L)
    {
        L.ChkArgsCount(4);
        ZFrame.UGUI.UISprite obj = (ZFrame.UGUI.UISprite)L.ChkUnityObjectSelf(1, "ZFrame.UGUI.UISprite");
        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);

        obj.Load(arg0, arg1, arg2);
        return(0);
    }
    static int IsRaycastLocationValid(IntPtr L)
    {
        L.ChkArgsCount(3);
        ZFrame.UGUI.UISprite obj = (ZFrame.UGUI.UISprite)L.ChkUnityObjectSelf(1, "ZFrame.UGUI.UISprite");
        var  arg0 = L.ToVector2(2);
        var  arg1 = L.ToComponent(3, typeof(UnityEngine.Camera)) as UnityEngine.Camera;
        bool o    = obj.IsRaycastLocationValid(arg0, arg1);

        L.PushBoolean(o);
        return(1);
    }
    static int Tween(IntPtr L)
    {
        L.ChkArgsCount(4);
        ZFrame.UGUI.UISprite obj = (ZFrame.UGUI.UISprite)L.ChkUnityObjectSelf(1, "ZFrame.UGUI.UISprite");
        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 set_spritePath(IntPtr L)
    {
        object o = L.ToUserData(1);

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

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

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

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

        ZFrame.UGUI.UISprite obj = (ZFrame.UGUI.UISprite)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);
    }