Files
UnrealEngineUWP/Engine/Documentation/Source/Platforms/HTML5/GettingStarted/HTML5GettingStarted.CHN.udn
Jeff Wilson 7efadf51df Merging
//depot/UE4/Engine/Documentation/...

to //UE4/Main/Engine/Documentation/...

[CL 3037940 by Jeff Wilson in Main branch]
2016-07-05 13:43:25 -04:00

35 lines
1.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
INTSourceChangelist:2958335
Availability:Public
Title:准备开始:开发 HTML5 项目
Crumbs:%ROOT%, Platforms, Platforms/HTML5
Description:进行 HTML5 平台的开发设置。
Version:4.11
SkillLevel:Intermediate
type:quickstart
parent:Platforms/HTML5
tags:HTML5
[REGION:todo]
HTML5 流程仍处于实现性阶段。针对 HTML5 平台进行开发时,部分项目可能存在问题。未完善之处请多包涵。
[/REGION:todo]
HTML5 使用 [emscripten](http://kripken.github.io/emscripten-site/) 工具链从 [Mozilla](https://www.mozilla.org/en-US/) 交叉编译 C++ 到 Javascript 中。在 4.9 或更新版本中emscripten 和 python 包含在引擎分布中。
可在 `Engine/Source/ThirdParty/HTML5/emsdk/` 路径中找到它们,部署到 HTML5 无需进行配置或额外安装。
当前HTML5 版本的运行要求 64 位浏览器。
* [下载 Firefox nightlies](ftp://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central/)
* [下载 Chromium 版本](http://chromium.woolyss.com/#windows-64-bit)
安装完成后,可从 **Launch** 下来菜单中选择用于 [运行游戏](Engine/Deployment/Launching) 的浏览器。
![](LaunchNightly.png)
**测试 [HTML5 打包项目](Engine/Basics/Projects/Packaging) 的步骤:**
1. 从 **Package Project** 弹出菜单中选择 **HTML5**。
1. 项目完成打包后,打开所在路径并运行 **HTML5LaunchHelper**。
1. 记录此窗口中的 localhost 地址。
![](localhostinfo.png)
1. 在 64 位浏览器中打开 `[Localhost 地址]/[项目名].html`。例如,`http://localhost:8000/MyProject.html` 使用的是上图中的 localhost 地址,项目名为 `MyProject`。