Example Scenes

There are multiple examples in the Assets/LookingGlass/Examples folder that can help you get started with the Looking Glass Unity Plugin.

Example 1 - Framing Content with Hologram Camera

This example showcases Dez Island, a 3D scene with two cute chinchillas chilling on a tropical island. It's a good example of how to position a Hologram Camera in a scene with content at varying levels of depth.

Example 2 - Placing Text

This example shows how to properly place 2D text in the Looking Glass, due to the specific nature of text it's recommended to place it close to or on the focal plane for the best clarity. Clicking the Play button will animate the text forward and backward along the Z axis.

Example 3 - Post Processing

This example shows how to use the Looking Glass Post-Processing Volume to add depth of field. Enabling and disabling this component in the scene will show how depth of field can improve the look of objects that are far away from the focal plane. For more information, please see the Post Processing page.

Example 4 - 3D Cursor

This example shows how to use the 3D Cursor prefab. This will allow you to interact with the scene in 3D space in a natural way. This example also uses our orbit controls script to allow you to rotate the scene. For more information, please see the 3D Cursor page.

Example 5 - Hardware Buttons

This example shows hardware button inputs for our devices, demonstrating how to tie events to these inputs. It currently only supports Windows.

Example 6 - Dual Monitor Application & ExtendedUI

These examples show how to get started with dual monitor applications where having a non-full-screen window or MacOS support is required. These can be useful when you want to have a 2D UI on your normal monitor that can control a 3D scene on the Looking Glass. The first example shows the Looking Glass application, while the second shows the flat 2D UI that you can use to control the position of the cube. For more information on Dual Monitor applications see the Dual Monitor Applications page.
For Windows setups where a full-screen UI is acceptable, you can use standard Unity display management, though there is some complexity for due to the "Force Display Index" toggle. For two-monitor setups, we recommend unchecking Force Display Index as it greatly simplifies raycasting and UI events.

Example 7 - Recording Example Scene

This example will show how to use the QuiltCapture script to capture your scene as a quilt image or video. This will allow you to share it with others (via and import it into Looking Glass Studio. For more information, see the QuiltCapture.cs reference.

Example 8 - Render Stacking

This example shows how to make use of the Hologram Camera Render Stack feature — a way to layre kinds of content and optimize scene rendering by pre-rendering expensive background content ahead of time.

URP Example Scene

This example is in Assets/LookingGlass/Examples/URP
It shows our beta support for URP rendering. Note that some features, like post-processing and the 3D cursor, are not currently supported.