Comment on page
Looking Glass Pro
Looking Glass Pro development requires Unity version 2018 or later.
To fully load the example scene:
Holoplay\Examples\9 - Pro Workstation
- 2.Select the
Pro Workstation Manager (Looking Glass)GameObject from the scene hierarchy
- 3.In the
Pro Workstation Managerscript, select the
Setup\Open Scenesbutton loads in the
_extendedUIscene of the same name. This scene drives the UI on the Foldout 2D Display. If a scene doesn't exist by this name, this button will create it.
The additional example scene that gets incorporated includes:
- It's own
Pro Workstation Managergame object, with the
Pro Workstation Managerscript field for
Foldout 2D. This is required so that the scenes can identify which displays they drive.
- A canvas to manage the UI. Any Unity content is allowable here. Note: the canvas in this example scene has a layout that fits with the Foldout 2D Display.
- An IPC (Inter-process communicator) that sends events between the two scenes.
While it's possible to create your own scene from scratch, the preferred route is by copying the example scenes and removing what you don't need and working from there.
Follow these steps if you'd like to start from scratch or if you'd like to integrate your existing project with the Looking Glass Pro.
- 1.Create a New Scene
- 2.Remove the default Unity camera and add a
HoloPlay Captureto the scene, found in
- 3.Add a
Pro Workstation Managerto the scene, found in
- 4.Select the
Pro Workstation Managerfrom the scene hierarchy, and click
- 5.Add a
Pro Workstation Managerto the second scene
- 6.Set the second scene's
Pro Workstation Manager's
If the app requires UI elements on the Foldout 2D Display, this can be done using conventional Unity UI elements. If the app requires IPC between the two scenes, this can be done using the IPC example code provided in the demo.
In order to support all Looking Glass Pro functionality, you must build your applications in an unconventional way. Unity's built-in build pipeline will not work. To build the proper way:
- Open File > Build Settings... and add both your scenes and click Add Open Scenes to add both scenes to the "Scenes in Build" field
- Close the Build Settings window
- Select any
Pro Workstation Managergame object
- Click the Build (Pro Workstation) button in the
Pro Workstation Managerscript in the inspector
When building for the Looking Glass Pro, you must use the
Build (Pro Workstation)button found in the
Pro Workstation manager.