Application.isWebPlaye is deprecated how to fix it

Application.isWebPlaye is deprecated how to fix it?
Application.isWebPlayer was removed from unity api and breaks application. Is there a fix?

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;

Replace the judgment condition with if in this code

Guess you like

Origin blog.csdn.net/qq_45498613/article/details/129054603