FairyGUI.GRoot.CloseAllWindows C# (CSharp) Method

CloseAllWindows() public method

Close all windows.
public CloseAllWindows ( ) : void
return void
        public void CloseAllWindows()
        {
            GObject[] arr = _children.ToArray();
            foreach (GObject g in arr)
            {
                if (g is Window)
                    HideWindowImmediately(g as Window);
            }
        }

Usage Example

 static public int CloseAllWindows(IntPtr l)
 {
     try {
         FairyGUI.GRoot self = (FairyGUI.GRoot)checkSelf(l);
         self.CloseAllWindows();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of FairyGUI.GRoot::CloseAllWindows