You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
//depot/UE4/Engine/Documentation/... to //UE4/Main/Engine/Documentation/... [CL 3037940 by Jeff Wilson in Main branch]
35 lines
1.6 KiB
Plaintext
35 lines
1.6 KiB
Plaintext
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) 的浏览器。
|
||

|
||
|
||
**测试 [HTML5 打包项目](Engine/Basics/Projects/Packaging) 的步骤:**
|
||
1. 从 **Package Project** 弹出菜单中选择 **HTML5**。
|
||
1. 项目完成打包后,打开所在路径并运行 **HTML5LaunchHelper**。
|
||
1. 记录此窗口中的 localhost 地址。
|
||

|
||
1. 在 64 位浏览器中打开 `[Localhost 地址]/[项目名].html`。例如,`http://localhost:8000/MyProject.html` 使用的是上图中的 localhost 地址,项目名为 `MyProject`。
|