Deploy Unity to HoloLens2 real machine

The previous chapter introduced how to build a HoloLens2 development environment. This chapter introduces how to deploy the program to the real device. There are many ways to deploy. Here we introduce the way to deploy to the device with Visual Studio2019.

Build project

Open Build Settings, click the build button, and wait for the program to compile:

Visual Studio compile and deploy

After the build is completed, a Visual Studio function will be automatically generated, double-click to open the xxx.sln file:

At this point, the Visual Studio2019 tool will open. On the toolbar, set it to ARM64 and deploy to the device:

Click the menu, Build -> Deploy Solution, and wait for the project deployment to complete. If it is the first deployment, you will be prompted to enter the pin code ( how to display the PIN code on the device is described in the previous article ):

 After the following output information appears, the project file has been deployed.

 

Guess you like

Origin blog.csdn.net/qq_41014870/article/details/128866274