- Home /
Question by
jason0202 · Mar 23, 2012 at 06:56 AM ·
guimono-behaviour
Reflect changes of script in editor
Hi guys,
Is there any mono function that control the changes of script will reflect on editor? For example, I have a color changer script that will change guitext renderer color.
I wonder how will it auto-reflect on editor mode before the game in run mode?
Thanks
Comment
Best Answer
Answer by asafsitner · Mar 25, 2012 at 10:31 AM
Try using the `ExecuteInEditMode` attribute. Add a custom Inspector or EditorWindow if needed.
Answer by jason0202 · Mar 26, 2012 at 01:48 AM
thanks @asafsitner! this is exactly what I'm asking for. :)