查看: 747|回复: 10

[平台开发] 【Getting Started: Developing HTML5 Projects | Unreal Engine】

[复制链接]

1

主题

338

帖子

7万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
74666
发表于 2016-6-29 00:44:47 | 显示全部楼层 |阅读模式


本页面的内容:

      
Disclaimer

Binary and Launcher Users
64-bit browser requirement

Source and Github Users
Installing from Source:
.emscripten Config File Setup
Installing from SDK.
Unreal Engine 4 Setup.
Mac OS
     Disclaimer
The HTML5 pipeline is currently experimental. Some projects may not run properly when built for the HTML5 platform. Expect some rough edges.

Choose your installation method:
   
Epic Games Launcher
   
Compiling from Source

     Binary and Launcher Users
Install emscripten. For Windows users, it's advised to simply use the emscripten SDK Web Installer.

Though the web installer for emscripten will append its path to the System Path environment variable, just check to make sure it was.

Install Python 2.7

Any version of Python 2.7 will do. As of this writing, 2.7.9 is the latest 2.7 release. Do not use Python 3.X.

Update your Engine\Config\HTML5\HTML5Engine.ini file:

[HTML5SDKPaths]Mac="/path/to/emscripten/sdk"Emscripten="C:/Program Files/Emscripten/emscripten/1.29.0"Python="C:/Python27"
If you choose to install anything into a different location, such as Chrome or Firefox, make sure to change it in this file.

64-bit browser requirement
A 64-bit browser is currently required to run HTML5 builds.

Download Firefox nightlies

Download Chromium builds


  Source and Github Users
Building HTML5 platform as a target platform is supported on both Windows and Mac Host platforms.

HTML5 uses the emscripten tool chain from Mozilla to cross compile C++ into javascript. It is distributed in source form, published SDKs or portable distributions. UE4 build system supports all of them with few steps.

Installing from Source:
Install prerequisites:

Node.js

Python (2.X series)

Make sure python.exe is in the Path environment variable.

Java

Clone emscripten repository [emscripten Repository]

Clone Fastcomp repository and build it [howto]

.emscripten Config File Setup
The emscripten tool chain a needs a config file .emscripten to function properly. Follow this emscripten document to setup the file correctly.

Installing from SDK.
Follow instructions on emscripten website. It’s normally best to install the latest SDK version.

Unreal Engine 4 Setup.
Fork and clone the Unreal Engine 4 repository [UnrealEngine]

Within a shell run Setup.bat -include=HTML5

Edit  Engine\Config\HTML5\HTML5Engine.ini and setup path to the SDK for your OS under [HTML5SDkPaths] section. Add the section if required. Also add the path to your Python install, normally this is included in you emscripten SDK install. If Python is on your PATH you can skip this step. It should look like:

[HTML5SDKPaths]Emscripten="C:/Program Files/Emscripten/emscripten/X.YY.Z"Python="C:/Program Files/Emscripten/python/X.YY.Z_64bit/python.exe"
If you need to specify different paths for different OSs you can do the following

[HTML5SDKPaths]Windows="C:/html5sdk/path/on/windows"Mac="/html5sdk/path/on/mac”
Make sure you have major browsers installed and links in HTML5Engine.ini under [HTML5DevicesWindows] section point to the right browser binaries.

For example:

[HTML5DevicesWindows]Firefox="C:/Program Files (x86)/Mozilla Firefox/firefox.exe”Chrome(32bit)="C:/Program Files (x86)/Google/Chrome/Application/chrome.exe"Chrome(64bit)="C:/Program Files/Google/Chrome/Application/chrome.exe"
Follow the instuctions on https://github.com/EpicGames/UnrealEngine to build the editor.  Set your solution configuration to Development and your solution platform to HTML5 to build HTML5.

Mac OS
Please refer to http://kripken.github.io/emscripten-site/docs/getting_started/downloads.html#verifying-the-installation for emscripten on Mac OS issues. And follow the above steps to setup UE4. Right now there’s no way to build HTML5 within xcode - however you can build HTML5 from command line using existing scripts which are invoked by xcode.  e.g.

Engine\Build\Batchfiles\Mac\Build.sh UE4Game HTML5 Development
回复

使用道具 举报

0

主题

852

帖子

2784

积分

vip会员

Rank: 1

积分
2784
发表于 2016-7-2 20:56:15 | 显示全部楼层
多少钱,看看
回复 支持 反对

使用道具 举报

0

主题

865

帖子

2865

积分

vip会员

Rank: 1

积分
2865
发表于 2016-7-4 03:45:38 来自手机 | 显示全部楼层
一下这么多新发的好东东,谢谢分享
回复 支持 反对

使用道具 举报

0

主题

834

帖子

2770

积分

vip会员

Rank: 1

积分
2770
发表于 2016-7-4 13:46:58 来自手机 | 显示全部楼层
回复看看!!!!!!!!!楼主辛苦
回复 支持 反对

使用道具 举报

0

主题

861

帖子

2903

积分

vip会员

Rank: 1

积分
2903
发表于 2016-7-5 03:36:22 | 显示全部楼层
这个不会又是超级贵吧.
回复 支持 反对

使用道具 举报

0

主题

866

帖子

2819

积分

vip会员

Rank: 1

积分
2819
发表于 2016-7-12 05:56:07 | 显示全部楼层
真的是全套吗?
回复 支持 反对

使用道具 举报

0

主题

889

帖子

2927

积分

vip会员

Rank: 1

积分
2927
发表于 2016-7-14 15:54:38 | 显示全部楼层
好东西,所噶
回复 支持 反对

使用道具 举报

0

主题

862

帖子

2864

积分

vip会员

Rank: 1

积分
2864
发表于 2016-7-16 03:06:51 来自手机 | 显示全部楼层
不错,我喜欢这个,看看多少金币哦
回复 支持 反对

使用道具 举报

0

主题

828

帖子

2724

积分

vip会员

Rank: 1

积分
2724
发表于 2016-7-18 11:38:52 来自手机 | 显示全部楼层
收下了~~感谢~
回复 支持 反对

使用道具 举报

0

主题

884

帖子

2969

积分

vip会员

Rank: 1

积分
2969
发表于 2016-7-23 16:05:05 来自手机 | 显示全部楼层
论坛的好东西真多啊,相信版主放的东西都靠谱,就是希望价格便宜点啦。
回复 支持 反对

使用道具 举报

*滑块验证:
您需要登录后才可以回帖 登录 | enginedx注册

本版积分规则

 
 



邮件留言:


 
返回顶部