public virtual void OnGUI() { if (_fatalError != null) { var labelWidth = 600; var labelHeight = 200; GUI.Label(new Rect(Screen.width / 2 - labelWidth / 2, Screen.height / 3 - labelHeight / 2, labelWidth, labelHeight), "Unrecoverable error occurred! \nSee log for details.", ErrorTextStyle); var buttonWidth = 100; var buttonHeight = 50; var offset = new Vector2(0, 100); if (GUI.Button(new Rect(Screen.width / 2 - buttonWidth / 2 + offset.x, Screen.height / 3 - buttonHeight / 2 + offset.y, buttonWidth, buttonHeight), "Reload")) { ExecuteFullReload(); } } else { try { if (_guiRenderableManager != null) { _guiRenderableManager.OnGui(); } } catch (Exception e) { Log.ErrorException(e); _fatalError = e; } } }
public void OnGUI() { _renderableManager.OnGui(); }