SetSortingOrder() 공개 메소드

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.
리턴 void
예제 #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));
     }
 }
예제 #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));
     }
 }