4. Deploy Your Level

In the following section we will be taking a look at how you can deploy a single level from the project you are working in to your Android device for quick testing.

For this section to work you will need to make sure that your Android device is plugged into your computer via USB. If you have not done this already please do this before going any further.

To deploy your level to your Android device you need to determine which type of Texture format your Android Device supports. This is because different types of Android devices require different types of Texture formats to work correctly. The chart below shows you which Texture formats work with which Android based devices.

Format Description
ETC1 Supported by all Android based devices but cannot compress alpha textures (they are stored uncompressed). Recommend using an RGB and a separate alpha texture if need alpha to get better compression.
ETC2 Supported by all OpenGL 3.x class devices and supports alpha compression.
ATC Supported by Qualcomm Adreno GPUs and supports alpha compression.
DXT Supported by Nvidia Tegra GPUs and supports alpha compression.
PVRTC supported by PowerVR GPUs and supports alpha compression.
ASTC Latest Texture compression format allowing more quality control by specifying block size and supports alpha compression. Available on some devices at this point and will be required for Vulkan Level 1.

If you are unsure which Texture format to use or which ones are supported by your device, you can find out by running the game and then doing the following.

  1. Tap the screen with 4 fingers at once, a dialog will pop up.

  2. This dialog is usually used to enter a console command (like stat fps), but it will also display the formats that your device supports.

  3. Once you have that list, you can use that to choose a more ideal type when deploying/packaging.

Available_Texture_Formats.png

Steps

  1. To test your current level on a Android based device you first need to make sure you have the level you want to test open. From this example we will be using the ThirdPersonExampleMap level from the Blueprint based project that was created in the last step.

    Correct_Level_Open.png

  2. With the ThirdPersonExampleMap now open go to the Main Toolbar and next to the Launch icon click on the small triangle that displays more options.

    Level_Deploy_Options.png

  3. From the Launch menu under the Devices section select your Android device from the list by clicking on it.

    launch_rightformat.png

  4. While your level is being launched on your device the progress will be displayed in the bottom right-hand corner of the screen. When the project has been successfully deployed to your device you will see a message telling you so.

  5. After the cooking and launching process has been completed, the game will appear automatically on your device, and also be accessible from your Apps drawer.

    Deployed_Project_Android.png

End Result

When completed the UE4 project that you created will now be running on your Android based smartphone.