How do I get started with Hololight Stream SDK for Unity?
Establish a connection with your XR device to a Unity 3D Project with Hololight Stream
Download Trial Version |
Download Clients |
If your project already includes Hololight Stream, remove any files left over from previous versions before installing the latest version. After removing all older files, you can continue with the installation.
- In the Unity Editor menu bar, select Window > Package Manager.
- Find any Hololight Stream packages and select Remove.
Before working with Hololight Stream, review the supported Unity versions listed below. Newer versions of Unity may work but aren’t fully tested.
Supported Unity versions |
|
Unity 2022.3 (LTS) | Unity 2021.3 (LTS) |
Before integrating the Hololight Stream SDK into your project, review the system, software, and network recommendations and requirements.
Install Unity and create a project
This guide shows how to install Hololight Stream into a Unity template project and connect to that project in the editor. You'll need Unity Hub to proceed.
- Install Unity Hub on your Windows computer and sign in or create an account.
- Select Installs in the left sidebar, then click Install Editor in the top-right corner.
- Choose a Unity Editor version that Hololight Stream supports and select Install.
- During the installation, a Visual Studio pop-up might appear.
- Select Continue and follow the instructions to reach the install window.
- Check the box for Game development with Unity and select Install.
- After Unity and Visual Studio are installed, you can create your project.
- Select Projects in the left sidebar and navigate to New Project > Core > VR Core > Download Template.
- Unity will now create the project. This may take a few minutes.
First Installation
- Open your Unity VR Core template, if not already open.
- Make sure your Unity Version is supported by Hololight Stream.
- Select Window > Package Manager.
- In the Package Manger, select + > Add package from tarball.
- Find the Hololight Stream Folder you downloaded and unzipped earlier.
- Open the Packages folder. Select the file com.hololight.stream-<version>.tgz where <version> is the current version of Hololight Stream.
A warning may appear asking if you want to enable the native platform backends for the new input system. Select Yes and Unity will restart. |
Configure the project
- Select Edit > Project Settings > XR Plug-in Management.
- Check the box next to Initialize XR on Startup.
- Under Plug-in Providers, check the box next to Hololight Stream.
- Make sure only Hololight Stream is selected.
- Select File > Build Settings.
- In the Build Settings panel, set the following options:
Platform | Windows, Mac, Linux |
Target Platform | Windows |
Signaling Server | Intel 64-Bit |
Run Hololight Stream for the first time
After setting up Hololight Stream, select Play. If setup was successful, you'll be able to connect to the application using the Hololight Stream client.
- Download and install the Hololight Stream client on your XR device.
- Make sure your PC and your XR device are in the same network.
- Get the PC's IP adress by
- Press Windows Key > Enter Command Prompt > Open Command Prompt
- Type ipconfig > Press Enter > Look for IPv4
- The IPv4 is your IP adress and looks something like this: 192.168.110.84.
- Select Play in your Unity Editor.
- Open the Hololight Stream client on your device.
- Enter your PC's IP adress in the client.
- Select Connect.
When connected with Hololight Stream Client, you’ll see the contents of the first scene under Scenes to Build. If your scene is empty, you won’t see anything. In Unity, you will see the Main Camera move in sync with your client device’s movements. You can also build and run a standalone application to test.
Connection Details
To see information about your current Hololight Stream connection status, select Hololight > Hololight Stream > Connection Details. Here you can see the following:
Property | Description |
Device | The device that the connected Hololight Stream Client is running on |
Reality type |
The type of XR experience the client is using. For Example:
|
Version | Version number for the connected Hololight Stream Client |
Property | Description |
Resolution | Resolution of the connected Hololight Stream client |
Target frame rate | The target frame rate for the system |
Bandwith | Maximum bandwidth limit while streaming |
Codec | Preferred codec for encoding and decoding |
Depth buffer streaming | Wether depth buffer is enabled in the stream |
Features
The Hololight Stream SDK for Unity includes a wide range of features. For details, refer to the documentation in the downloaded SDK package.
Extensions | Core components | Toolkits |
QR Codes | Audio | XR Interaction Toolkit |
Image tracking 2D | Camera | Microsoft Mixed Reality Toolkit 2 |
Raycasts | Haptics | Microsoft Mixed Reality Toolkit 3 |
Spatial Anchors | Microphone | AR Foundation |
Occlusion | ||
Object Stabilization | ||
Scene understanding | ||
Meshing | ||
Gaze | ||
Touch | ||
Speech Recognition | ||
Video Passthrough | ||
DirectX12 | ||
Signaling (Custom Extension) |
Summary
Use this guide to set up your Unity 3D project with Hololight Stream. For step-by-step instructions, please refer to the documentation included in the Hololight Stream SDK for Unity folder.
If you need additional help, don’t hesitate to contact us or explore the troubleshooting section.