Skip to content

Commit 8335fe9

Browse files
authored
Merge pull request #844 from chikacc/master
fix: resolve TreeView deprecation in Unity 6.2+
2 parents 49bdeaa + fb9c550 commit 8335fe9

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

VContainer/Assets/VContainer/Editor/Diagnostics/VContainerDiagnosticsTreeView.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
using UnityEditor.IMGUI.Controls;
77
using VContainer.Diagnostics;
88
using VContainer.Unity;
9+
#if UNITY_6000_2_OR_NEWER
10+
using TreeView = UnityEditor.IMGUI.Controls.TreeView<int>;
11+
using TreeViewItem = UnityEditor.IMGUI.Controls.TreeViewItem<int>;
12+
using TreeViewState = UnityEditor.IMGUI.Controls.TreeViewState<int>;
13+
#endif
914

1015
namespace VContainer.Editor.Diagnostics
1116
{

VContainer/Assets/VContainer/Editor/Diagnostics/VContainerInstanceTreeView.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
using UnityEditor.IMGUI.Controls;
66
using UnityEngine;
77
using VContainer.Diagnostics;
8+
#if UNITY_6000_2_OR_NEWER
9+
using TreeView = UnityEditor.IMGUI.Controls.TreeView<int>;
10+
using TreeViewItem = UnityEditor.IMGUI.Controls.TreeViewItem<int>;
11+
using TreeViewState = UnityEditor.IMGUI.Controls.TreeViewState<int>;
12+
#endif
813

914
namespace VContainer.Editor.Diagnostics
1015
{

0 commit comments

Comments
 (0)