Example #1
0
    static int ConstrainWithinPanel(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        UIGrid obj = (UIGrid)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UIGrid");

        obj.ConstrainWithinPanel();
        return(0);
    }
Example #2
0
    static int ConstrainWithinPanel(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        UIGrid obj = LuaScriptMgr.GetNetObject <UIGrid>(L, 1);

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

        try
        {
            UIGrid uIGrid = (UIGrid)LuaObject.checkSelf(l);
            uIGrid.ConstrainWithinPanel();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #6
0
    private static int ConstrainWithinPanel(IntPtr L)
    {
        int result;

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