Skip to content

Commit

Permalink
Seneral#189 Better fix to support older unity versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
agentdalecoper committed Jun 21, 2020
1 parent 3aaa602 commit e260f62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Node_Editor_Framework/Editor/NodeEditorWindow.cs
Expand Up @@ -268,6 +268,10 @@ private void OnGUI()

// Draw Interface
float screenWidth = Screen.width;
#if UNITY_EDITOR && UNITY_2019_3_OR_NEWER && UNITY_2020_2_OR_OLDER
float scaling = UnityEditor.EditorPrefs.GetInt("CustomEditorUIScale") / 100.0f;
screenWidth = screenWidth / scaling;
#endif
editorInterface.DrawToolbarGUI(new Rect(0, 0, screenWidth, 0));
editorInterface.DrawModalPanel();

Expand Down

0 comments on commit e260f62

Please sign in to comment.