Merge pull request #2810 from saturday06/fix-unity-6.2-tree-view-warnings

Unity 6.2 以降 6.5 未満で TreeView が Obsolete 警告を出すのに対応
This commit is contained in:
ousttrue 2026-07-06 19:09:22 +09:00 committed by GitHub
commit 95efed0cef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ using System.Collections.Generic;
using UnityEditor;
using UnityEditor.IMGUI.Controls;
using UnityEngine;
#if UNITY_6000_5_OR_NEWER
#if UNITY_6000_2_OR_NEWER
using TreeView = UnityEditor.IMGUI.Controls.TreeView<int>;
using TreeViewItem = UnityEditor.IMGUI.Controls.TreeViewItem<int>;
using TreeViewState = UnityEditor.IMGUI.Controls.TreeViewState<int>;

View File

@ -1,7 +1,7 @@
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
#if UNITY_6000_5_OR_NEWER
#if UNITY_6000_2_OR_NEWER
using TreeView = UnityEditor.IMGUI.Controls.TreeView<int>;
using TreeViewItem = UnityEditor.IMGUI.Controls.TreeViewItem<int>;
using TreeViewState = UnityEditor.IMGUI.Controls.TreeViewState<int>;