Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

isWebPlayer has been removed #37

Open
shaneTF opened this issue Mar 31, 2018 · 1 comment
Open

isWebPlayer has been removed #37

shaneTF opened this issue Mar 31, 2018 · 1 comment

Comments

@shaneTF
Copy link

shaneTF commented Mar 31, 2018

Application.isWebPlayer was removed from unity api and breaks application. Is there a fix?

@patracio
Copy link

Go to file "UnityThreadHelper.cs", then find the next code

isWebPlayer = Application.isWebPlayer;

replace with

if (Application.platform == RuntimePlatform.WebGLPlayer)
           isWebPlayer = true;
       else
           isWebPlayer = false;

that's all

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants