Unity 报错:RuntimePlatform.WindowsWebPlayer

RuntimePlatform.WindowsWebPlayer 替换RuntimePlatform.WindowsPlayer

RuntimePlatform.OSXWebPlayer 替换 RuntimePlatform.OSXPlayer

RuntimePlatform.OSXDashboardPlayer 停止使用

在Unity2017 和Unity2018 中已过时,解决方法:

return Application.platform != RuntimePlatform.WindowsPlayer 
    && Application.platform != RuntimePlatform.OSXPlayer;

如果对您有帮助,点个赞鼓励下吧~

发布了22 篇原创文章 · 获赞 6 · 访问量 1610

猜你喜欢

转载自blog.csdn.net/li1214661543/article/details/105359490