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

Try using the ExecuteInEditMode attribute. Add a custom Inspector or EditorWindow if needed.

thanks @asafsitner! this is exactly what I’m asking for. :slight_smile: