2024年4月3日发(作者:)

Unity Manual > Advanced > Web Player Deployment > HTML code to

load Unity content

Unity手册->高级->web播放器部署->HTML代码装入Unity内容

HTML code to load Unity content HTML代码装入Unity内容

Web Player content is loaded in the browser using the Unity Web Player's

plugin or ActiveX control. The HTML code required to load and display web player

content is different for Microsoft's Internet Explorer compared to all other

browsers. This is because Internet Explorer uses ActiveX Controls and therefore an

object tag must be used whereas all other supported browsers use plugins and

therefore an embed tag must be used instead.

Web播放内容被加载在浏览器中使用Unity的Web Player的插件或ActiveX控件。

所需的HTML代码加载和显示Web播放器的内容是不同的对于微软IE浏览器与所有其他

浏览器比较而言。这是因为Internet Explorer使用ActiveX控件和标签的对象,必须使用

而所有其他支持的浏览器支持的插件并且因此内嵌标记必须替代使用。

The HTML file generated by Unity when building a web player contains all the

commonly required functionality - it does Unity plugin detection, enables easy

web player installation, and supports all browsers that can run Unity Web Player. In

most cases you don't have to modify the HTML file at all. This document describes

the inner workings of HTML code required for Unity content.

该HTML文件通过Unity生成当创建一个web播放器包含了所有的公共需要的功能-

它做Unity的插件检测,启用简单的web播放器安装,并支持所有的浏览器,可以运行

Unity的Web播放器。在大多数情况下,你不必修改HTML文件的。本文档描述的HTML

代码为Unity的内容进行内部工作。

The minimal HTML required to load Unity Web Player content in all supported

browsers is:

所需的最小的HTML加载在所有支持Unity的Web浏览器播放的内容是:

classid="clsid:444785F1-DE89-4295-863A-D46C3A781394"

width="600" height="450"

codebase="/download_webplayer/UnityWebPla

#version=2,0,0,0">

height="450"

type="application/"

pluginspage="/unity-web-player-2.x" />

本文发布于:2024-04-03,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:内容播放器代码

发布评论

评论列表(有0条评论)
    福州电脑网_福州电脑维修_福州电脑之家_福州iThome

    福州电脑网_福州电脑维修_福州电脑之家_福州iThome

    福州电脑维修网(fzithome.com)专业的电脑维修,笔记本维修,上门维修各种电脑,笔记本,平板等,快速上门.电脑知识频道内容覆盖:计算机资讯,电脑基础应用知识,各种电脑故障维修学习,电脑外设产品维修维护,病毒,软件,硬件,常识.