# Looking Glass Pro (Legacy)

{% hint style="info" %}
***only available for versions 1.2.0 to 1.3.1 -- you can download version 1.3.1*** [***here***](https://s3.amazonaws.com/static-files.lookingglassfactory.com/HoloPlaySDK/PublicBuilds/1.3.0/HoloplaySDK-1.3.1.unitypackage)
{% endhint %}

## Overview

The Plugin has build support for the 15.6" Looking Glass Pro. You can learn more about the features and specs of the Looking Glass Pro at the [Getting Started Guide](https://github.com/BryanChrisBrown/LookingGlass_Docs/tree/53bdbd07384ea038fa38692e7968556afecb54ef/Gettingstarted/pro/README.md).

Looking Glass Pro development requires Unity version 2018 or later.

## Reviewing the Example Scene

To fully load the example scene:

1. Open `Holoplay\Examples\9 - Pro Workstation`
2. Select the `Pro Workstation Manager (Looking Glass)` GameObject from the scene hierarchy
3. In the `Pro Workstation Manager` script, select the `Setup\Open Scenes` button

![pro-example-scene](https://content.gitbook.com/content/PuCaeVAli72TiclYlEG5/blobs/BWltBJycqvjHeAAHpIdo/pro-example-scene.png)

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 Manager` game object, with the `Pro Workstation Manager` script field for `Display` set to `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 Looking Glass Pro.

1. Create a New Scene
2. Remove the default Unity camera and add a `HoloPlay Capture` to the scene, found in `Assets/Holoplay/Prefabs/`
3. Add a `Pro Workstation Manager` to the scene, found in `Assets/Holoplay/Prefabs/`
4. Select the `Pro Workstation Manager` from the scene hierarchy, and click `Setup/Open Scene`
5. Add a `Pro Workstation Manager` to the second scene
6. Set the second scene's `Pro Workstation Manager`'s `Display` to `Foldout 2D`

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 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 Manager` game object
* Click the **Build (Pro Workstation)** button in the `Pro Workstation Manager` script in the inspector

When building for the Looking Glass 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 Looking Glass Pro. If you want your build to auto-play on startup, consult the instructions in the setup guide.

## Support

If you have further questions or for further support, please reach out to one of our support specialists by emailing <support@lookingglassfactory.com>
