IvanMurzak / Unity-Theme

Create palettes of colors and components for change specific color on a specific visual element. Very useful to UI.
MIT License
99 stars 6 forks source link

Current theme in Editor view does not update when changed by script #19

Open scotsdez opened 7 months ago

scotsdez commented 7 months ago

When in the Unity-Theme Settings page in the editor, the 'Current Theme' dropdown field is not updated if the current game theme is changed in Play mode. Ideally, if this could subscribe to change events for the current theme, this would be useful for debugging scripts, as well as avoiding confusion where the game may be presenting a different theme from what the Settings page is currently indicating.

The behaviour was observed when calling Theme.Instance.SetOrAddTheme("theme name", true);

(Thank you for this project, by the way - it's absolutely what I've needed for a long time, and have finally been able to try for a hobby project with the removal of ODIN.)