We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57fb050 commit 1893a8aCopy full SHA for 1893a8a
1 file changed
Editor/AlignToolsWindow.cs
@@ -85,13 +85,21 @@ private void OnEnable()
85
{
86
Utils.editorPath = System.IO.Path.GetDirectoryName(AssetDatabase.GetAssetPath(MonoScript.FromScriptableObject(this)));
87
88
+#if UNITY_2019_1_OR_NEWER
89
+ SceneView.duringSceneGui += OnSceneGUI;
90
+#else
91
SceneView.onSceneGUIDelegate += OnSceneGUI;
92
+#endif
93
EditorApplication.hierarchyWindowItemOnGUI += OnHierarchyWindowItemOnGUI;
94
}
95
96
private void OnDisable()
97
98
99
+ SceneView.duringSceneGui -= OnSceneGUI;
100
101
SceneView.onSceneGUIDelegate -= OnSceneGUI;
102
103
EditorApplication.hierarchyWindowItemOnGUI -= OnHierarchyWindowItemOnGUI;
104
105
0 commit comments