It used to be you could use Application.isWebPlayer to known if the game is running in the Web Player. This has been deprecated as of 5.4. I would have thought it would make sense to just carry it over to WebGL, but apparently not. So what is the equivalent? I don't see a WebGL specific flag in this list:
https://docs.unity3d.com/ScriptReference/Application.html
↧