FairyGUI.UIPanel.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. e.g. call Stage.SortWorldSpacePanelsByZOrder later.
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 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));
     }
 }
All Usage Examples Of FairyGUI.UIPanel::SetSortingOrder