- Home /
How to recognize I'm in Unity Webbuild Editor, without precompiler
As in topic:
I need to be able to execute code path when I have:
Editor and
Webplayer build
Things I cannot use (those are requirements I have from 3rd party, so there is no "change requirements" possible):
No precompiler directives
No Editor scripts that I can poll for
Things I tried:
Application.isEditor && similar fields
RuntimePlatform
Current solution:
Do WWW query to google.com and see exception "no crossdomain" ....
I'm open to suggestions :)
Answer by MaT227 · May 23, 2014 at 11:11 PM
The requirements are quite strange... why using Unity if you can't use Unity's features when you are in editor mode ? :D
You can try creating things or using features that are not supported in webplayer. I think that they will throw exceptions, then you can just catch them. Or maybe Webplayer only features.
That's the only things I found for the moment... Hope it helps.