I wanted to try out the HoloLens emulator while waiting for my chance to purchase the physical unit, but was stopped dead in my tracks with some setup issues. Here’s how I fixed the issue.
When you click “Play” in Unity, you receive an error like, “Assets/Holograms/Support/Fitbox/Fitbox.cs(2,2): error CS0234: The type or namespace name ‘WSA’ does not exist in the namespace ‘UnityEngine.VR’. Are you missing an assembly reference?” Your first warning was when you opened the tutorial files and you received this message that you ignored:
There are actually a couple things you may need to fix.
First, you need the special technical preview of the Unity editor, not your regular editor. Secondly, you’ll need to head to GitHub and download the updated version of the Unity project. Microsoft created the tutorial with an old version of Unity. The original files on the Microsoft Developer Hololens Tutorial are old. You’ll need the latest version of the Unity editor and project files. The special version won’t overwrite your current editor. You can have both installed at the same time.
- Download and install the Unity editor for Hololens.
- Install the UWP Runtime.
- Download https://github.com/Microsoft/HolographicAcademy/tree/Holograms-101
- Unzip the file
- Copy the
ProjectSettingfolder into your
Origamifolder. It should overwrite the existing Assets & ProjectSettings folders.