Editor or Not?

Hi,
I have a script that works a little differently if it is running in the editor ca device. I have a public bool that I can set to insure the correct function.

What I am wondering is, sometimes I forget to set it properly. What is code that would allow the script to self determine if it is running in the editor or not?

Thanks!

You want this.

3 Likes

Indeed I do.

Thank you.