UE 4 Mobile Deployment Niklas Smedberg Senior Engine
UE 4 – Mobile Deployment Niklas Smedberg Senior Engine Programmer, Epic Games Unreal Engine 4 East Coast Dev. Con 2014
Here’s how you deploy! Unreal Engine 4 East Coast Dev. Con 2014
Mobile Deployment Details • Launch game on device – – From UE 4 Editor From Unreal Frontend From Visual Studio on PC From Xcode on Mac • Packaged Builds – Stand-alone build that can be installed & executed without UE 4 • File Server Example • Driver Tips Unreal Engine 4 East Coast Dev. Con 2014
Launch from UE 4 Editor • Check the Supported Platforms in your Project Settings – Edit -> Project Settings -> Support Platforms – Make sure the platform is enabled (e. g. “Android”) Unreal Engine 4 East Coast Dev. Con 2014
Launch from Unreal Frontend • • • EngineBinariesWin 64Unreal. Frontent. exe Can make standalone builds E. g. D: DevUE 4SamplesShowcasesMobile. TempleBinariesAndroid: Install_Mobile. Temple_Development. bat main. 00001. com. epicgames. Mobile. Temple. obb Mobile. Temple-armv 7. apk • Documentation: https: //docs. unrealengine. com/latest/ INT/Engine/Deployment/Unreal. Frontend/ index. html Unreal Engine 4 East Coast Dev. Con 2014
Launch Android from Visual Studio • Make sure NVIDIA TADP is installed – Engine/Extras/Android/tadp-2. 0 r 8 -windows. exe • Execute Generate. Project. Files. bat to create UE 4. sln • Open UE 4. sln in Visual Studio • Make sure your device is connected in TADP toolbar Unreal Engine 4 East Coast Dev. Con 2014
Launch Android from Visual Studio • • • Compile UE 4 (or your game) for “Development Editor”, “Win 64” Compile UE 4 (or your game) for “Development”, “Android” Copy program arguments to device – Open command-line in EngineBuildAndroidUE 4 Game – Modify UE 4 Command. Line. txt (project path and filehostip) – Execute Push. Command. Line. bat • Start file server on command-line – UE 4 Editor-Cmd. exe Mobile. Temple -run=cook -targetplatform=android -cookonthefly • • Hit F 5! Documentation: – https: //docs. unrealengine. com/latest/INT/Platforms/Android/index. html Unreal Engine 4 East Coast Dev. Con 2014
Launch i. OS from Xcode • PC with remote Mac: – Build from PC with Visual Studio, using remote Mac with Xcode • Modify EngineSavedUnreal. Build. ToolBuild. Configuration. xml – UE 4_From. PC. xcodeproj will be created on the remote Mac – Open the project in Xcode on the Mac – Select the correct configuration, set program arguments and launch • Mac: – Execute. /Generate. Project. Files. command to create UE 4. xcodeproj – Open UE 4. xcodeproj in Xcode – Compile, set program arguments and launch • Documentation: – https: //docs. unrealengine. com/latest/INT/Platforms/i. OS/Getting. Started/index. html Unreal Engine 4 East Coast Dev. Con 2014
Tips: Command-line • How to create a standalone build from command-line: – Copy command-line from Unreal Frontend log – Save your commonly used command-lines in a text file – Example: > cd EngineBuildBatch. Files > Run. UAT. bat Build. Cook. Run -nocompileeditor -nop 4 -project="SamplesShowcasesMobile. Temple. uproject" -cook -allmaps -stage -archivedirectory="E: /Builds" -package -Android -cookflavor=ATC -clientconfig=Test -ue 4 exe=UE 4 Editor-Cmd. exe -pak Unreal Engine 4 East Coast Dev. Con 2014
File Server Example • Starting file server on PC: UE 4 Editor-Cmd. exe Mobile. Temple -run=cook -targetplatform=android_atc -cookonthefly • Contents of UE 4 Command. Line. txt (pushed to Android device): . . SamplesShowcasesMobile. Temple. uproject -filehostip=15. 1. 102. 51 -streaming • UE 4 Game_Run. IOS arguments in Xcode: Samples/Showcases/Mobile. Temple. uproject -filehostip=15. 1. 102. 51 Unreal Engine 4 East Coast Dev. Con 2014
i. OS Certificates & Provisioning Profiles • Log in to https: //developer. apple. com • Download i. OS certificate – Install on your PC / Mac by double-clicking the certificate file – IPhone. Packager. exe can also install certificates • Download IOS Provisioning Profile – – Create a Provisioning Profile Edit the profile to add your i. OS device(s) to the profile Download it to your PC / Mac Install it by importing it with IPhone. Packager (PC) or Xcode (Mac) • PC: EngineBinariesDot. NETIOSIPhone. Packager. exe • Mac: Xcode copies it to ~/Library/Mobile. Device/Provisioning Profiles Unreal Engine 4 East Coast Dev. Con 2014
Android ADB Driver • If the driver doesn’t install correctly, try this (Windows 7): – Open Device Manager – Right-click on your “other device” – Select “Update Driver Software…” Unreal Engine 4 East Coast Dev. Con 2014
Android ADB Driver • Select “Browse my computer for driver software” Unreal Engine 4 East Coast Dev. Con 2014
Android ADB Driver • Select “Let me pick from a list of device drivers on my computer” • Don’t choose the top option! ! T AN T R O IMP Unreal Engine 4 East Coast Dev. Con 2014
Android ADB Driver • Select “Show All Devices” • Don’t select a specific type! • Click “Next” ! ! ! T AN T R O IMP Unreal Engine 4 East Coast Dev. Con 2014
Android ADB Driver • Click “Have Disk…” • Browse to driver folder • Click “Ok” Unreal Engine 4 East Coast Dev. Con 2014
Android ADB Driver • Select “Android ADB Interface” • Click “Next” • Accept if warning shows up Unreal Engine 4 East Coast Dev. Con 2014
Android ADB Driver • Installation is complete! • Click “Close” Unreal Engine 4 East Coast Dev. Con 2014
Android ADB Driver • Verify that your device is recognized by Device Manager and ADB Unreal Engine 4 East Coast Dev. Con 2014
UE 4 Mobile Deployment Questions? Documentation, Tutorials and Help at: http: //answers. unrealengine. com • Answer. Hub: • Engine Documentation: http: //docs. unrealengine. com http: //forums. unrealengine. com • Official Forums: http: //wiki. unrealengine. com • Community Wiki: http: //www. youtube. com/user/Unreal. Development. Kit • You. Tube Videos: #unrealengine on Free. Node • Community IRC: Unreal Engine 4 Roadmap • lmgtfy. com/? q=Unreal+engine+Trello+ Unreal Engine 4 East Coast Dev. Con 2014
- Slides: 23