From 48f602aa87db3cb4a87f94d698e21dd22c9f3eaa Mon Sep 17 00:00:00 2001 From: AnnulusGames Date: Fri, 21 Jun 2024 10:23:53 +0900 Subject: [PATCH] Fix: GUI.color not reverting correctly --- .../Alchemy/Editor/Hierarchy/HierarchyTreeMapDrawer.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Alchemy/Assets/Alchemy/Editor/Hierarchy/HierarchyTreeMapDrawer.cs b/Alchemy/Assets/Alchemy/Editor/Hierarchy/HierarchyTreeMapDrawer.cs index ab89d57..6de84b6 100644 --- a/Alchemy/Assets/Alchemy/Editor/Hierarchy/HierarchyTreeMapDrawer.cs +++ b/Alchemy/Assets/Alchemy/Editor/Hierarchy/HierarchyTreeMapDrawer.cs @@ -67,6 +67,9 @@ namespace Alchemy.Editor if (gameObject == null) return; var settings = AlchemySettings.GetOrCreateSettings(); + + var tempColor = GUI.color; + if (settings.ShowTreeMap) { selectionRect.width = 14; @@ -130,7 +133,7 @@ namespace Alchemy.Editor else break; } - GUI.color = Color.white; + GUI.color = tempColor; } } }