HoloLens works seamlessly with Unity. With minimal changes to the camera, we can quickly design, build, and deploy MR applications; we'll build one right now (albeit a very simple one).
Select the Main Camera in the Scene1 window of the Hierarchy panel and make the following changes in the Inspector panel:
-
Set the Position of X as 0, Y as 0, and Z as 0.
- Select Solid Color for the Clear Flags field and set the Background color to black; black renders as transparent in HoloLens.
-
Set the Clipping Planes | Near as 0.85 and Far as 10. Here, the value of 0.85 is a recommendation from Microsoft as spatial mapping is currently effective between the range of 0.85 meters and 4 meters, where 1 unit in Unity represents 1 meter in the physical world.
The following screenshot...