Unity content is loaded in the browser by the Unity Web Player plugin. HTML code usually does not communicate with this plugin directly but through the help of a script called UnityObject. Its primary task is to make Unity content embedding a very simple
task by shielding the user from various browser and platform specific issues. It also enables easy Web Player installation.
Unity内容在浏览器通过Unity网络播放器插件加载。HTML代码与这个插件通常不直接通信,而是通过UnityObject的脚本帮助。其主要任务是Unity的内容嵌入一个非常简单的任务,通过从各种浏览器和平台指定发行版屏蔽用户。也可以启用简单的网络播放器安装。
The HTML file generated by Unity when building a web player contains all the commonly required functionality. In most cases you don't have to modify the HTML file at all. The rest of the document explains the inner workings of this file.
HTML文件由Unity在编译网络播放器时生成,包含通常所需的所有功能。在大多数情况下,您不必修改HTML文件。文档的其余部分讲解这个文件的内部怎样工作。
The UnityObject script has to be loaded before it can be used