FairyGUI.UIPainter.SetSortingOrder C# (CSharp) Method

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.
return void
        public void SetSortingOrder(int value, bool apply)
        {
            this.sortingOrder = value;
            container._panelOrder = value;

            if (apply)
                Stage.inst.ApplyPanelOrder(container);
        }

Usage Example

示例#1
0
 static int SetSortingOrder(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         FairyGUI.UIPainter obj = (FairyGUI.UIPainter)ToLua.CheckObject(L, 1, typeof(FairyGUI.UIPainter));
         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));
     }
 }
All Usage Examples Of FairyGUI.UIPainter::SetSortingOrder