Inital repo for PTG project. Contains the Unity project, the HoloLens 2 research mode visual studio project, and various python scripts to communicate with the HoloLens.
Unity Hub - 3.0.0 - https://unity.com/unity-hub
Unity - 2020.3.25f1 - https://unity3d.com/get-unity/download/archive
Visual Studio 2019 - 16.11.8 - https://visualstudio.microsoft.com/vs/older-downloads/
Mixed Reality Feature Tool - 1.02111-Preview - https://www.microsoft.com/en-us/download/details.aspx?id=102778
HoloLens 2 headset
- Open the unity/Hello_World project with Unity Hub.
- Open the demo scene in the Unity editor (unity\Hello_World\Assets\my_scene).
- Modify the default project build settings (
File -> Build Settings...
).
- Under the Universal Windows Platform tab
- Target Device = HoloLens
- Architecture = ARM64
- Minimum Platform Version = 10.0.19041.0
- Build and Run on = USB Device
- ClickSwitch Platform
after applying the new settings. - Create a build folder to place completed Unity builds (e.g. unity/Hello_World/Builds/my_first_build).
- Click
Build
and specify your desired build folder. After the build completes, a new file explorer windows will pop up with the location of the build. - Open the .sln file with Visual Studio.
- In Visual Studio, switch
Solution Configurations
to Release andSolution Platforms
to ARM64. - Open the project properties window (
Project -> Hello_World Properties
) and switch to theConfigurations -> Debugging
tab. Enter the IP address of your HoloLens in the Machine Name field. - Modify the
Package.appxmanifest
per the README in HoloLens2-ResearchMode-Unity/ - Deploy the app to the Hololens by clicking
Build -> Deploy Solution
- After deployment completes, open the Windows menu in the Hololens and select All Apps, and then click on the Hello_World application.
- Research mode must be enabled in the HoloLens headset (see "Enabling Research Mode" section here https://docs.microsoft.com/en-us/windows/mixed-reality/develop/advanced-concepts/research-mode).
- The first time you start your application on the HoloLens, you may have to allow camera/microphone access to the app. Click yes on the popups and then restart the application.