There are two ways to deploy an Unreal application to HoloLens 2:
Both options require you to set up your HoloLens to use the device portal for development.
Open the Device Manager and note that your HoloLens won’t automatically appear in the device list.
Expand the Add An Unlisted Device section.
Select HoloLens as your Platform.
Enter your devices’ IP address and port information separated by a colon as the device identifier. For example, “127.0.0.1:10080” (when connected via USB). Use your Device Portal username and password credentials.
Hit Add and close the device manager.
[!NOTE] Building for the device may involve recompiling shaders (especially on the first run)- this can take a while. Don’t let the device go to sleep until the app is running (you may have to wear it). Otherwise shader compilation will fail!
You can find detailed instructions on packaging and deploying an app in the Unreal tutorial series.
If you’re following the Unreal development journey we’ve laid out, you’re in the midst of the deployment stage. From here, you can continue to adding advanced services:
[!div class=”nextstepaction”] Advanced services
You can always go back to the Unreal development checkpoints at any time.