When I am running a script with the ExecuteInEditMode attribute enabled, is there any way for that script to "know" if I am currently in Edit Mode or Play Mode?
2 Answers
2Think your looking for:
EditorApplication.isPlaying
Reference
If the script is not an Editor script, then this will work:
Application.isPlaying
Reference