Developing for the Pro
only available for v1.2.0 or greater
The SDK has build support for the 15.6" Looking Glass Pro. You can learn more about the features and specs of the 15.6" Pro at the Getting Started Guide.
15.6" Pro development requires Unity version 2018 or later.
Reviewing the Example Scene
To fully load the example scene:
Holoplay\Examples\9 - Pro Workstation
- Select the
Pro Workstation Manager (Looking Glass)GameObject from the scene hierarchy
- In the
Pro Workstation Managerscript, select the
Setup\Open Scenes button loads in the
_extendedUI scene 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.
Creating your Own Scene
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 15.6" Pro.
- Create a New Scene
- Remove the default Unity camera and add a
HoloPlay Captureto the scene, found in
- Add a
Pro Workstation Managerto the scene, found in
- Select the
Pro Workstation Managerfrom the scene hierarchy, and click
- Add a
Pro Workstation Managerto the second scene
- 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.
Building a Release
In order to support all 15.6" 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 15.6" Pro, you must use the
Build (Pro Workstation) button found in the
Pro Workstation manager.
When your build is complete, it is ready to be transferred over to the 15.6" Pro. If you want your build to auto-play on startup, consult the instructions in the setup guide.
If you have further questions or for further support, please reach out to one of our support specialists by emailing [email protected]