Set up Hololight Stream examples for Unity

Set up Hololight Stream examples

The Hololight Stream examples package is a collection of Unity examples showing you how to use the many Hololight Stream components.

Hololight Stream examples

Example

Description

Anchoring Sample (MRTK 2)

Demonstrates the anchoring functionality. Only available when connected to the HoloLens 2 client. Requires MRTK 2.

Anchoring Sample (MRTK 3)

Demonstrates the anchoring functionality. Only available when connected to the HoloLens 2 client. Requires MRTK 3.

Audio Stream Sample

Contains prefabs and scripts for streaming Unity audio to the connected device.

Camera Stream Sample

Contains prefabs and scripts for receiving the clients camera stream within Unity. Only available when connected to the HoloLens 2 client.

Data Channel Sample

Contains scripts highlighting how to create a custom extension requiring a data channel.

Occlusion Sample

Demonstrates the Occlusion Extension usage. Only available in combination with the iOS client

Microphone Sample

Contains prefabs and scripts for receiving the clients microphone stream within Unity.

Signaling Sample

Contains scripts for providing external signaling implementation.

Disconnection Sample (MRTK 2)

Contains scripts for remote disconnection. Requires MRTK 2.

Disconnection Sample (MRTK 3)

Contains scripts for remote disconnection. Requires MRTK 3.

Object Stabilization Sample

Demonstrates how to set the focus plane to an object in order to provide better stability.

URP Alpha Passthrough

Sample code to allow alpha rendering in URP scenes in order to use device passthrough mode.

Meta Haptics

Sample code that demonstrates the usage of haptic files created by Meta Haptics Studio.

Eye Tracking

Sample code that demonstrates the usage of eye tracking information through the Input System.

Pose Prediction Configuration

Sample editor script that allows the tuning of the pose prediction.

Logitech MX Ink Stylus

Sample code demonstrating the usage of actions from Logitech MX Ink Stylus.

Passthrough

Sample code that demonstrates the usage of passthrough functionality on the server.

Install Hololight Stream examples into your Unity project

  1. Select Window > Package Manager.

  2. In the Package Manger, select + > Add package from tarball.

  3. Find the Hololight Stream repository and open the "Packages" folder. Select the file "com.hololight.stream.examples-<version>.tgz" where <version> is the current version of Hololight Stream.

After a little bit of loading, "Hololight Stream Examples" will appear under the category "Packages - Holo-Light GmbH".

Add a Hololight Stream example to your project

  1. Select Window > Package Manager > Hololight Stream Examples.

  2. Find the example you want and select Import.