Set up for Unity
This page shows how to enable Spatial Reality Display(SR Display) in your Unity projects.
Prerequisites
- Setup your SR Display, if not, see: Setup SR Display,Setup SR Display Settings
Prepare your own Unity project, if not, try Quickstart
Import SRDisplay UnityPlugin
-
Download latest srdisplay-unity-plugin.unitypackage
The latest version of SRDisplay UnityPlugin supports two templates, one for Standard 3D Renderer and one for Universal Render Pipeline (URP).
Download the appropriate plugin according to the Unity template you have selected.
-
Create a new Unity project
-
Import SRDisplay UnityPlugin
-
Select Assets > Import Package > Custom Package and select srdisplay-unity-plugin.unitypackage that you downloaded
-
Or you can drag & drop srdisplay-unity-plugin.unitypackage to Project in the UnityEditor, also.
-
-
Click Import in the Import Unity Package dialog
Make sure that all package options are checked
Caution
When you import srdisplay-unity-plugin.unitypackage to the project that is already imported the package, you may get the error with something like the following dialog.
In this situation, you must remove Assets / SRDisplayUnityPlugin with the explore application (not Unity Editor)
-
If the architecture of the Unity project is not x86_64, the plugin will change the architecture to x86_64 automatically. When you find the following dialog, press OK to change the correct architecture.
Caution
SRDisplay UnityPlugin only supports Windows x86_64 architecture
Caution
Only "Mono" is supported for "Scripting Backend" in the Project Settings.
Make sure that "Project Settings"-> "Player"-> "Scripting Backend" is set to "Mono".
Configure the project settings
-
We recommend to set the VSync Count for all Quality Levels to Don't Sync (See: Minimize the latency for good user experience in Tips and Constraints)
Configure the build settings
-
Set Target Architecture
Open Build Settings dialog from File > Build Settings
-
Make sure that Architecture is x86_64