RemoteTech.RTCore.OnGUI C# (CSharp) Method

OnGUI() public method

Called by the Unity engine during the GUI rendering phase. Note that OnGUI() is called multiple times per frame in response to GUI events. The Layout and Repaint events are processed first, followed by a Layout and keyboard/mouse event for each input event.
public OnGUI ( ) : void
return void
        public void OnGUI()
        {
            if (!_guiVisible)
                return;

            if (TimeWarpDecorator != null)
                TimeWarpDecorator.Draw();

            GUI.depth = 0;
            OnGuiUpdate.Invoke();

            Action windows = delegate { };
            foreach (var window in AbstractWindow.Windows.Values)
            {
                windows += window.Draw;
            }
            windows.Invoke();
        }