羽枭android,【答疑】Unreal Engine 4 是怎样发布android的? - 视频教程线上学

首先,编译出引擎。对于学习目的来说,从网上下载一份就够了,编译步骤简单的描述一下:我们把下载的代码解压到指定的目录,包括UnrealEngine-4.*.*-release.7z,Required_1of2.7z,Required_2of2.7z,三个文件。解压完成之后,在解压目录中,双击GenerateProjectFiles.bat 运行,等待完成。然后会生成UE4.sln文件。这样就可以打开UE4解决方案,编译出引擎。

对于打包安卓平台的功能来说,还需要一些特殊的步骤

假设我们已经完成了安卓平台编辑器的编译。现在就可以进行安卓平台的游戏打包了。

运行编辑器,双击Engine\Binaries\Win64\UE4Editor.exe,先创建一个模板项目。为简便起见,我们直接打开选择BluePrintThirdPerson模板项目。这里要特别注意,不要勾选Include starter content 选项,否则打包出来的游戏包有差不多500M,这显然不是我们想要的。

然后就可以选择打包游戏了,

5602c3f65d25bb97f5363826548a4945.png

如图所示,需要选择指定图片格式的平台,由于我用来测试的是三星手机枭龙处理器,采用ATC格式,所以选择第二个。如果不知道手机配置的,可以选择ETC1格式,兼容所有手机。等打包完成之后,运行游戏,4个手指同时触摸屏幕可以显示出当前手机支持的格式。

选择一个输出目录,待打包完成,会生成三个文件:

256a23c6c84f45b744b2804793e6f047.png

如果手机已经连接了电脑,并且adb可以识别的情况下,双击bat批处理文件就可以自动将游戏安装到手机了。也可以手动安装,就是将apk文件拷贝到手机上,双击安装,然后,在手机SD卡的Andriod 目录下创建obb目录(如果没有),然后创建游戏数据目录,这个目录名称可以参见bat文件最后一行命令,红色部分:

%ADB% push main.00001.com.epicgames.MyProject6.obb /mnt/sdcard/obb/com.epicgames.MyProject6/main.00001.com.epicgames.MyProject6.obb

再将obb文件拷贝到创建出来的游戏数据目录中。 其实这一行指令就是执行这个obb文件的拷贝操作。

Tap into the power of Unreal Engine 4 and create exciting games for the Android platform About This Book Dive straight into making fully functional Android games with this hands-on guide Learn about the entire Android pipeline, from game creation to game submission Use Unreal Engine 4 to create a first-person puzzle game Who This Book Is For If you are a game developer, designer, artist, or a beginner in the gaming industry and want to make Android games with Unreal Engine 4 efficiently, this book is ideal for you. In Detail Have you ever wanted to create games that will get users hooked to their phones? Unreal Engine 4, with all its tools and power, will help make your dreams come true! Designed to get you working with Unreal Engine 4 from the very first page, this book will quickly guide you through the basics in the first two chapters. Once you get the hang of things, we will start developing our game―Bloques! Bloques is a puzzle game with four rooms. Each room will be more challenging than the previous, and as you develop, you will graduate from movement and character control to AI and spawning. Once you've created the game, you will learn how to port and publish your game to the Google Play Store. In addition to building an Android game from start to finish, you will also discover how to generate revenue, and how to optimize game performance using the tools and functionalities the engine provides. With this book, you will be inspired to come up with your own great ideas for your future game development projects. Table of Contents Chapter 1. Getting Started with Unreal 4 Chapter 2. Launching Unreal Engine 4 Chapter 3. Building the Game – First Steps Chapter 4. Using Actors, Classes, and Volumes Chapter 4.X folders Chapter 5. Scripting with Blueprints Chapter 6. Using Unreal Matinee Chapter 7. Finishing, Packaging, and Publishing the Game
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值