Browse Source

Force gui exit on FlowchartWindow after repainted

Forces exit once flowchartWindow done repainting
master
Cattywampus 3 years ago committed by Steve Halliwell
parent
commit
0909eef9a7
  1. 5
      Assets/Fungus/Scripts/Editor/FlowchartWindow.cs

5
Assets/Fungus/Scripts/Editor/FlowchartWindow.cs

@ -831,6 +831,11 @@ namespace Fungus.EditorUtils
// Redraw on next frame to get crisp refresh rate // Redraw on next frame to get crisp refresh rate
Repaint(); Repaint();
} }
#if UNITY_2020_1_OR_NEWER
//Force exit gui once repainted
GUIUtility.ExitGUI();
#endif
} }
protected virtual void DrawOverlay(Event e) protected virtual void DrawOverlay(Event e)

Loading…
Cancel
Save