- Home /
Is there a way to live-update script-controlled UI formatting in the editor?
I'm designing a UI for my game, and I want to control the formatting of it programmatically. That is, I want to add variables that control the colors, fonts, from the top-level of the UI, rather than set them all individually.
I know how to write a script that does that, but I'm wondering if there's a way that will allow me to tweak the public variables in the inspector, and watch them update without having to run it.
Thanks!
Answer by Bunny83 · Jan 08, 2018 at 09:44 PM
That's actually the only real usecase for the ExecuteInEditMode attribute. It will make your scripts Update function to run even in edit mode.
Your answer
Follow this Question
Related Questions
ShaderGraph-like EditorWindow 0 Answers
Trigger an event from editor script? 0 Answers
GUI Editior Script not working in ( Unity 2019.x ) 0 Answers