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
Setup
Download Trial Version |
Download Clients |
If your project already has Hololight Stream installed, you need to remove any files left over from previous versions before installing the newest version. When you’ve removed all files from older versions of Hololight Stream, you can continue on to installing the latest version.
- In the Unity Editor menu bar select Window > Package Manager.
- Find any Hololight Stream packages and select Remove.
Before working with Hololight Stream, please see our supported Unity versions below. Hololight Stream may support newer versions of Unity, but they are not fully tested.
Unity 2022.3 (LTS) | Unity 2021.3 (LTS) |
Install Unity and create a project
This guide shows you the process of installing Hololight Stream into a Unity Template project and connect to that project in the editor. In order to proceed you will need Unity Hub.
- Install Unity Hub on your Windows computer and log in or create an account.
- Click “Installs” in the left sidebar, then click “Install Editor” in the top right corner.
- Choose a Unity Editor version that Hololight Stream supports and click “Install.”
- During the installation, a Visual Studio pop-up might appear.
- Click “Continue” and follow the instructions to reach the install window.
- Check the box for “Game development with Unity” and click “Install.”
- After Unity and Visual Studio are installed, you can create your project.
- Click “Projects” in the left sidebar and select 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 has a checked box
- Select File > Build Settings
- On the Build Settings panel, make sure to set the following options:
Platform | Windows, Mac, Linux |
Target Platform | Windows |
Signaling Server | Intel 64-Bit |
Run Hololight Stream for the first time
After you finish setting up Hololight Stream, select Play. If you did everything correctly, you will now be able to connect to the application with Hololight Stream Client.
- Download and Install 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 Pressing 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.
- Hit Play in your Unity Editor.
- Open Hololight Stream Client on your device.
- Type the IP adress of your PC in the Client.
- Hit Connect.
When connected with Hololight Stream Client, you will see the contents of the first scene under Scenes to Build. If your scene is empty, you won’t see anything. In Unity though, you will see the Main Camera move with the 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
Hololight Stream SDK for Unity offers a wide range of features, but this would lead too much into detail for this article. Please refer to the documentation inside the downloaded package for detailed guidance.
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.