Running your first application
Build your Project in Unity
- Configure your content. Create your Unity Project as normal.
- Configure File > Build Settings for HoloLens. See Set-up for details of these settings.
-
Build your project in Unity. A successful build generates a Visual Studio solution containing your project and everything required to build and run on the device. An operating system window with the path to the solution should open automatically.
Run from Visual Studio
- Open the solution generated in step 3, above.
- Specify device details. Choose Release, x86, and Remote Machine. Enter the IP of the device to run on, select Universal (Unencrypted Protocol) for Authentication Mode.
- Build the solution in Visual Studio. If there are no errors and the destination device is unpaired, the build continues until it displays a dialog window. The dialog window for a pairing number.
- Pair with your HoloLens device:
- On the device, choose Settings > Update (Device update, reset, developer) > For Developers > Pair which opens a dialog window containing a number.
- Enter this number into the Visual Studio dialog window.
- The window with the pairing number on the device should present a Done button when the device is paired. Use a zooming Tap gesture on this button to continue: press thumb and forefinger together with a closed hand and then extend thumb and forefinger.
- Deploy continues. Your application should now run.
NOTE: You should only need to pair once per machine, per device.
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Is something described here not working as you expect it to? It might be a Known Issue. Please check with the Issue Tracker at issuetracker.unity3d.com.
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information