Hi guys,
quick question related to scripting:
There is a way to understand if a script is running in editor or in the game?
Basically my problem is that I have created a script which can be executed in editor more using the config
[ExecuteInEditMode]
And I’ve put some code into the OnRenderObject function.
The problem is that I want that this code only runs in the editor and not when the game is running.
There’s a quick solution for that?
Thank you guys