0

The unity3d web player plugin is supported by Explorer, Firefox, Safari, Mozilla, Netscape, and Camino on Windows or OSX.

Via JavaScript, what is the best method for determining whether a users configuration is supported, so I can alert them with the appropriate message? Is there a plugin out there that might support this case well? I'm looking for an easier solution than combing through the properties manually and testing on different devices myself.

Thanks in advance!

4

2 回答 2

1

您可以使用如下代码段检测操作系统:http ://www.javascripter.net/faq/operatin.htm

为了检测受支持的浏览器,我只需使用jquery 的 $.browser属性。

于 2011-02-19T20:33:41.140 回答
1

由于 Unity 使用 NPAPI(用于非 IE 浏览器支持),因此它应该适用于基本上所有浏览器。例如,您没有列出 Chrome,但 Unity 在 Chrome 中运行良好。没有理由它不应该在所有基于 Gecko 和 WebKit 的浏览器中工作,它们构成了其余的大部分。

因此,在部署执行此操作的代码之前,请仔细考虑您是否真的要显示可能会惹恼绝大多数无缘无故看到它的用户的警报。如果您真的担心 Unity 无法使用的用户,您(或您的用户)遇到问题的浏览器黑名单可能是更好的解决方案。

于 2011-02-23T00:44:45.013 回答