Skip to content

Commit f248391

Browse files
authored
Merge pull request #706 from chikacc/master
fix: resolve TreeView deprecation in Unity 6.2+
2 parents a9e27c0 + 0d304f1 commit f248391

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/UniTask/Assets/Plugins/UniTask/Editor/UniTaskTrackerTreeView.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
using Cysharp.Threading.Tasks.Internal;
1111
using System.Text;
1212
using System.Text.RegularExpressions;
13+
#if UNITY_6000_2_OR_NEWER
14+
using TreeView = UnityEditor.IMGUI.Controls.TreeView<int>;
15+
using TreeViewItem = UnityEditor.IMGUI.Controls.TreeViewItem<int>;
16+
using TreeViewState = UnityEditor.IMGUI.Controls.TreeViewState<int>;
17+
#endif
1318

1419
namespace Cysharp.Threading.Tasks.Editor
1520
{
@@ -179,4 +184,3 @@ protected override void RowGUI(RowGUIArgs args)
179184
}
180185

181186
}
182-

0 commit comments

Comments
 (0)