Use UE4 to publish Android platform games

Source: Internet
Author: User

Using the UE4 for a few days, I finally ran the game on the Android platform. There are a lot of problems, and eventually there are still some problems that can't be solved. The overall feeling is UE4 this engine is not mature enough, the problem is more. No unity is easy to use. But since it is open, the development must be swift and well worth expecting. Its code is also worth the research of the game development programmer.

Let's take a look at the specific steps:

First, compile the engine. For learning purposes, downloading one copy from the Internet is sufficient, and the compile step simply describes: We extract the downloaded code to the specified directory, including unrealengine-4.*.*-release.7z,required_1of2.7z,required_ 2of2.7z, three files. After the decompression is complete, in the Extract directory, double-click Generateprojectfiles.bat to run, waiting to complete. The UE4.sln file is then generated. This allows you to open the UE4 solution and compile the engine.

For the functionality of the packaged Android platform, there are also some special steps that you can refer to: https://docs.unrealengine.com/latest/INT/Platforms/Android/GettingStarted/index.html



Let's say we've finished compiling the Android platform editor. Now it's time to pack up the Android platform game.

Run the editor and double-click Engine\binaries\win64\ue4editor.exe to create a template project first. For simplicity, we open the Select Blueprintthirdperson Template project directly. It is important to note that the Include Starter content option is not checked, otherwise the packaged game pack has almost 500M, which is obviously not what we want.

Then you can choose to pack the game,


, you need to select the platform of the specified picture format, because I used to test the Samsung phone Owl Dragon processor, in the ATC format, so choose the second one. If you do not know the phone configuration, you can choose the ETC1 format, compatible with all mobile phones. After packaging is complete, run the game, 4 fingers simultaneously touch the screen can display the current phone support format.

Select an output directory to be packaged to complete and generate three files:

If your phone is connected to a computer and ADB recognizes it, double-clicking the bat batch file will automatically install the game to your phone. can also be installed manually, is to copy the APK file to the phone, double-click Install, and then, in the Andriod directory of the phone SD card to create the OBB directory (if not), and then create the game data directory, this directory name can see the bat file the last line of command, the red part:

%adb% push main.00001.com.epicgames.myproject6.obb/mnt/sdcard/obb/com.epicgames.MyProject6/ Main.00001.com.epicgames.myproject6.obb

Copy the Obb file to the created game Data directory. In fact, this line of instructions is to perform the copy operation of this OBB file.


The effect of running on the phone:


Enjoy!

Use UE4 to publish Android platform games

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.