ResetAndUpdateAnchors() public method

Convenience method that resets and updates the anchors, all at once.
public ResetAndUpdateAnchors ( ) : void
return void
Beispiel #1
0
    static int ResetAndUpdateAnchors(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        UIRect obj = (UIRect)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UIRect");

        obj.ResetAndUpdateAnchors();
        return(0);
    }
Beispiel #2
0
    static int ResetAndUpdateAnchors(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        UIRect obj = LuaScriptMgr.GetNetObject <UIRect>(L, 1);

        obj.ResetAndUpdateAnchors();
        return(0);
    }
Beispiel #3
0
 static public int ResetAndUpdateAnchors(IntPtr l)
 {
     try {
         UIRect self = (UIRect)checkSelf(l);
         self.ResetAndUpdateAnchors();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Beispiel #4
0
 static int ResetAndUpdateAnchors(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UIRect obj = (UIRect)ToLua.CheckObject(L, 1, typeof(UIRect));
         obj.ResetAndUpdateAnchors();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #5
0
    private static int ResetAndUpdateAnchors(IntPtr L)
    {
        int result;

        try
        {
            ToLua.CheckArgsCount(L, 1);
            UIRect uIRect = (UIRect)ToLua.CheckObject(L, 1, typeof(UIRect));
            uIRect.ResetAndUpdateAnchors();
            result = 0;
        }
        catch (Exception e)
        {
            result = LuaDLL.toluaL_exception(L, e, null);
        }
        return(result);
    }