[ExecuteInEditMode] Attribute

Someone please explain this attribute :- [ExecuteInEditMode]

Hi Mehtab,

Have you already read the description in the API?

https://docs.unity3d.com/ScriptReference/ExecuteInEditMode.html

Yes but simplify it please.

Usually, script components get executed only when you click the Play button. With [ExecuteInEditMode], the Update method gets called whenever something changes in the scene. You do not have to press the Play button.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.