Fix: GUI.color not reverting correctly

This commit is contained in:
AnnulusGames 2024-06-21 10:23:53 +09:00
parent c8348c6b69
commit 48f602aa87

View File

@ -67,6 +67,9 @@ namespace Alchemy.Editor
if (gameObject == null) return; if (gameObject == null) return;
var settings = AlchemySettings.GetOrCreateSettings(); var settings = AlchemySettings.GetOrCreateSettings();
var tempColor = GUI.color;
if (settings.ShowTreeMap) if (settings.ShowTreeMap)
{ {
selectionRect.width = 14; selectionRect.width = 14;
@ -130,7 +133,7 @@ namespace Alchemy.Editor
else break; else break;
} }
GUI.color = Color.white; GUI.color = tempColor;
} }
} }
} }