Skip to content

Commit d6f4828

Browse files
authored
Update ToolbarCallback.cs
1 parent 8de4a3e commit d6f4828

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Assets/ToolbarExtender/Scripts/Editor/ToolbarCallback.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
using UnityEngine;
33
using UnityEditor;
44
using System.Reflection;
5+
6+
#if UNITY_2019_1_OR_NEWER
7+
using UnityEngine.UIElements;
8+
#else
59
using UnityEngine.Experimental.UIElements;
10+
#endif
611

712
namespace UnityToolbarExtender
813
{
@@ -58,4 +63,4 @@ static void OnGUI()
5863
if (handler != null) handler();
5964
}
6065
}
61-
}
66+
}

0 commit comments

Comments
 (0)