Skip to content

Commit 5609f76

Browse files
committed
fix: Fixed warnings related to TreeView that would appear in Unity 6000.2
1 parent 84ab26e commit 5609f76

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

Assets/LDtkUnity/Editor/Utility/Tree/LDtkTreeView.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
using UnityEditor.IMGUI.Controls;
44
using UnityEngine;
55

6+
#if UNITY_6000_2_OR_NEWER
7+
using TreeView = UnityEditor.IMGUI.Controls.TreeView<int>;
8+
using TreeViewItem = UnityEditor.IMGUI.Controls.TreeViewItem<int>;
9+
using TreeViewState = UnityEditor.IMGUI.Controls.TreeViewState<int>;
10+
#endif
11+
612
namespace LDtkUnity.Editor
713
{
814
internal abstract class LDtkTreeView : TreeView

Assets/LDtkUnity/Editor/Utility/Tree/LDtkTreeViewLevel.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
using UnityEditor.IMGUI.Controls;
22

3+
#if UNITY_6000_2_OR_NEWER
4+
using TreeView = UnityEditor.IMGUI.Controls.TreeView<int>;
5+
using TreeViewItem = UnityEditor.IMGUI.Controls.TreeViewItem<int>;
6+
using TreeViewState = UnityEditor.IMGUI.Controls.TreeViewState<int>;
7+
#endif
8+
39
namespace LDtkUnity.Editor
410
{
511
internal sealed class LDtkTreeViewLevel : LDtkTreeView

Assets/LDtkUnity/Editor/Utility/Tree/LDtkTreeViewProject.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
using UnityEditor.IMGUI.Controls;
22

3+
#if UNITY_6000_2_OR_NEWER
4+
using TreeView = UnityEditor.IMGUI.Controls.TreeView<int>;
5+
using TreeViewItem = UnityEditor.IMGUI.Controls.TreeViewItem<int>;
6+
using TreeViewState = UnityEditor.IMGUI.Controls.TreeViewState<int>;
7+
#endif
8+
39
namespace LDtkUnity.Editor
410
{
511
internal sealed class LDtkTreeViewProject : LDtkTreeView

Assets/LDtkUnity/Editor/Utility/Tree/LDtkTreeViewWrapper.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
using UnityEditor.IMGUI.Controls;
44
using UnityEngine;
55

6+
#if UNITY_6000_2_OR_NEWER
7+
using TreeView = UnityEditor.IMGUI.Controls.TreeView<int>;
8+
using TreeViewItem = UnityEditor.IMGUI.Controls.TreeViewItem<int>;
9+
using TreeViewState = UnityEditor.IMGUI.Controls.TreeViewState<int>;
10+
#endif
11+
612
namespace LDtkUnity.Editor
713
{
814
internal sealed class LDtkTreeViewWrapper : IDisposable

0 commit comments

Comments
 (0)