From 3bbfd7f13336216d53712c4d24debede8b6ec574 Mon Sep 17 00:00:00 2001 From: hypercross Date: Sun, 7 Sep 2025 14:56:16 +0800 Subject: [PATCH] fix: Animancer TreeViewItem --- .../Editor/GUI/Weighted Mask Layers/TransformTreeView.cs | 6 ++++++ .../Editor/GUI/Weighted Mask Layers/TransformTreeWindow.cs | 5 +++++ .../WeightedMaskLayersDefinitionWindow.cs | 5 +++++ 3 files changed, 16 insertions(+) diff --git a/com.kybernetik.animancer/Editor/GUI/Weighted Mask Layers/TransformTreeView.cs b/com.kybernetik.animancer/Editor/GUI/Weighted Mask Layers/TransformTreeView.cs index 4e7a667..4f36ea7 100644 --- a/com.kybernetik.animancer/Editor/GUI/Weighted Mask Layers/TransformTreeView.cs +++ b/com.kybernetik.animancer/Editor/GUI/Weighted Mask Layers/TransformTreeView.cs @@ -9,6 +9,12 @@ using UnityEditor; using UnityEditor.IMGUI.Controls; using UnityEngine; +#if UNITY_6000_2_OR_NEWER +using TreeViewItem = UnityEditor.IMGUI.Controls.TreeViewItem; +using TreeViewState = UnityEditor.IMGUI.Controls.TreeViewState; +using TreeView = UnityEditor.IMGUI.Controls.TreeView; +#endif + namespace Animancer.Editor //namespace FlexiMotion.Editor { diff --git a/com.kybernetik.animancer/Editor/GUI/Weighted Mask Layers/TransformTreeWindow.cs b/com.kybernetik.animancer/Editor/GUI/Weighted Mask Layers/TransformTreeWindow.cs index 17fad6b..5bf536d 100644 --- a/com.kybernetik.animancer/Editor/GUI/Weighted Mask Layers/TransformTreeWindow.cs +++ b/com.kybernetik.animancer/Editor/GUI/Weighted Mask Layers/TransformTreeWindow.cs @@ -10,6 +10,11 @@ using UnityEditor.IMGUI.Controls; using UnityEngine; using static Animancer.Editor.AnimancerGUI; +#if UNITY_6000_2_OR_NEWER +using TreeViewItem = UnityEditor.IMGUI.Controls.TreeViewItem; +using TreeViewState = UnityEditor.IMGUI.Controls.TreeViewState; +#endif + namespace Animancer.Editor { /// [Editor-Only] diff --git a/com.kybernetik.animancer/Editor/GUI/Weighted Mask Layers/WeightedMaskLayersDefinitionWindow.cs b/com.kybernetik.animancer/Editor/GUI/Weighted Mask Layers/WeightedMaskLayersDefinitionWindow.cs index 5c538bc..58d8dff 100644 --- a/com.kybernetik.animancer/Editor/GUI/Weighted Mask Layers/WeightedMaskLayersDefinitionWindow.cs +++ b/com.kybernetik.animancer/Editor/GUI/Weighted Mask Layers/WeightedMaskLayersDefinitionWindow.cs @@ -9,6 +9,11 @@ using UnityEditor.IMGUI.Controls; using UnityEngine; using static Animancer.Editor.AnimancerGUI; +#if UNITY_6000_2_OR_NEWER +using TreeViewItem = UnityEditor.IMGUI.Controls.TreeViewItem; +using TreeViewState = UnityEditor.IMGUI.Controls.TreeViewState; +#endif + namespace Animancer.Editor { /// An for editing spring definitions.