⭐ Unity + HoloLens 2 to develop MR applications (initial configuration environment and operation)

1. Need to configure the environment

1. Download SDK ==> unitypackage address is as follows

https://github.com/microsoft/MixedRealityToolkit-Unity/releases/tag/v2.8.3

Scroll to the bottom and you will see it. Remember, it is best to import Foundation first, otherwise there will be a lot of errors...

2.Unity editor configuration

a. The editor version I choose here is 2019.3.13

b. Switch to UWP platform

c. Check Virtual Reality Support in Player Settings and select Windows Mixed Reality

2. After creating the project and importing the package, create the scene

Mixed Reality Toolkit --Add scene, add a scene

3. How to make the project run directly on the MR helmet?

1. OpenMicrosoft Store in Hololens2, download and installHolographic Remoting

2. Open Holographic Remoting and you can see the Hololens2’s IP address

3. KeepHolographic Remoting in Hololens2Open

4. guaranteeelectronicHololens2WIFIConnected same piece

5. Click ‘Window’-‘XR’-‘Holographic…’. Select 'Remote to device'

6. Enter the IP of Hololens2, select ‘Hololens2’ for ‘Device’, and click ‘Connect’. When ‘Connect’ turns green, it means the connection is successful. At the same time, the original IP display interface in Hololens2 disappears. You can see the program running results in Hololens2 after running it.

As follows: The black part is a scene in real life

4. Errors you may encounter: Hololens 2 remote processing: ProtocolVersionMismatch

The link below is the solution, but Iclosed the holographic tab andrestarted through Window>XR> ;Holographic Emulation menu and reopening it resolved the issue.

https://github.com/microsoft/MixedRealityToolkit-Unity/issues/7910

Guess you like

Origin blog.csdn.net/weixin_53501436/article/details/134249472