SetContentScaleFactor() public méthode

Set content scale factor.
public SetContentScaleFactor ( int designResolutionX, int designResolutionY ) : void
designResolutionX int Design resolution of x axis.
designResolutionY int Design resolution of y axis.
Résultat void
    static int SetContentScaleFactor(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(FairyGUI.GRoot), typeof(int), typeof(int)))
            {
                FairyGUI.GRoot obj  = (FairyGUI.GRoot)ToLua.ToObject(L, 1);
                int            arg0 = (int)LuaDLL.lua_tonumber(L, 2);
                int            arg1 = (int)LuaDLL.lua_tonumber(L, 3);
                obj.SetContentScaleFactor(arg0, arg1);
                return(0);
            }
            else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(FairyGUI.GRoot), typeof(int), typeof(int), typeof(FairyGUI.UIContentScaler.ScreenMatchMode)))
            {
                FairyGUI.GRoot obj  = (FairyGUI.GRoot)ToLua.ToObject(L, 1);
                int            arg0 = (int)LuaDLL.lua_tonumber(L, 2);
                int            arg1 = (int)LuaDLL.lua_tonumber(L, 3);
                FairyGUI.UIContentScaler.ScreenMatchMode arg2 = (FairyGUI.UIContentScaler.ScreenMatchMode)ToLua.ToObject(L, 4);
                obj.SetContentScaleFactor(arg0, arg1, arg2);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.GRoot.SetContentScaleFactor"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 static public int SetContentScaleFactor(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 3)
         {
             FairyGUI.GRoot self = (FairyGUI.GRoot)checkSelf(l);
             System.Int32   a1;
             checkType(l, 2, out a1);
             System.Int32 a2;
             checkType(l, 3, out a2);
             self.SetContentScaleFactor(a1, a2);
             pushValue(l, true);
             return(1);
         }
         else if (argc == 4)
         {
             FairyGUI.GRoot self = (FairyGUI.GRoot)checkSelf(l);
             System.Int32   a1;
             checkType(l, 2, out a1);
             System.Int32 a2;
             checkType(l, 3, out a2);
             FairyGUI.UIContentScaler.ScreenMatchMode a3;
             checkEnum(l, 4, out a3);
             self.SetContentScaleFactor(a1, a2, a3);
             pushValue(l, true);
             return(1);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }