jondewoo / UnitySlippyMap

A slippy map implementation written in C# for Unity3D
304 stars 110 forks source link

isWebPlayer has been removed #37

Open shaneTF opened 6 years ago

shaneTF commented 6 years ago

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

patracio commented 6 years ago

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