查看: 651|回复: 9

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

[复制链接]

1

主题

342

帖子

7万

积分

管理员

Rank: 9Rank: 9Rank: 9

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


本页面的内容:

      
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

主题

809

帖子

2681

积分

vip会员

Rank: 1

积分
2681
发表于 2016-7-2 20:50:13 来自手机 | 显示全部楼层
很想看看看了
回复 支持 反对

使用道具 举报

0

主题

873

帖子

2919

积分

vip会员

Rank: 1

积分
2919
发表于 2016-7-4 03:30:30 来自手机 | 显示全部楼层
这个怎么用呢
回复 支持 反对

使用道具 举报

0

主题

913

帖子

3019

积分

vip会员

Rank: 1

积分
3019
发表于 2016-7-4 13:44:06 来自手机 | 显示全部楼层
来看看......
回复 支持 反对

使用道具 举报

0

主题

865

帖子

2854

积分

vip会员

Rank: 1

积分
2854
发表于 2016-7-8 18:52:33 | 显示全部楼层
挺不错的!就是不知道价格
回复 支持 反对

使用道具 举报

0

主题

818

帖子

2719

积分

vip会员

Rank: 1

积分
2719
发表于 2016-7-9 07:17:05 | 显示全部楼层
好东西,多些楼主分享
回复 支持 反对

使用道具 举报

0

主题

834

帖子

2774

积分

vip会员

Rank: 1

积分
2774
发表于 2016-7-12 18:51:21 | 显示全部楼层
好东西 一定要分析那个
回复 支持 反对

使用道具 举报

0

主题

874

帖子

2876

积分

vip会员

Rank: 1

积分
2876
发表于 2016-7-18 10:41:23 | 显示全部楼层
好久没给力点的了。谢谢
回复 支持 反对

使用道具 举报

0

主题

837

帖子

2769

积分

vip会员

Rank: 1

积分
2769
发表于 2016-7-19 21:35:25 | 显示全部楼层
楼主能发图瞧瞧嘛
回复 支持 反对

使用道具 举报

0

主题

913

帖子

2996

积分

vip会员

Rank: 1

积分
2996
发表于 2016-7-23 03:19:40 来自手机 | 显示全部楼层
全部吗,谢谢啦
回复 支持 反对

使用道具 举报

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

本版积分规则

 
 



邮件留言:


 
返回顶部