SetSortingOrder() public method

Change the sorting order of the panel in runtime.
public SetSortingOrder ( int value, bool apply ) : void
value int sorting order value
apply bool false if you dont want the default sorting behavior. e.g. call Stage.SortWorldSpacePanelsByZOrder later.
return void
Example #1
0
 static public int SetSortingOrder(IntPtr l)
 {
     try {
         FairyGUI.UIPanel self = (FairyGUI.UIPanel)checkSelf(l);
         System.Int32     a1;
         checkType(l, 2, out a1);
         System.Boolean a2;
         checkType(l, 3, out a2);
         self.SetSortingOrder(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Example #2
0
 static int SetSortingOrder(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         FairyGUI.UIPanel obj = (FairyGUI.UIPanel)ToLua.CheckObject(L, 1, typeof(FairyGUI.UIPanel));
         int  arg0            = (int)LuaDLL.luaL_checknumber(L, 2);
         bool arg1            = LuaDLL.luaL_checkboolean(L, 3);
         obj.SetSortingOrder(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }