Set up for Unity(HDRP)
This page shows how to enable Spatial Reality Display(SR Display) using Unity's High Definition Render Pipeline(HDRP) in your Unity projects.
Prerequisites
- Setup your SR Display, if not, see: Setup SR Display,Setup SR Display Runtime
Note
To use HDRP, SR Display Runtime version 1.5.0 or later must be installed.
Import SRDisplay XR UnityPlugin
-
Download and extract the latest version of the SRDisplayXR UnityPlugin for HDRP (srdisplay-unity-plugin-hdrp_vX.X.X.XXXXX.zip).
A folder named com.sony.xr.srdisplay will be created.
-
Create a new Unity project using High Definition RP template.
-
Use the Explorer to copy the SRDisplay XR UnityPlugin into the project you created.
-
Create a folder called Plugins directly under the project folder you created.
-
Copy the com.sony.xr.srdisplay folder that you just downloaded to the Plugins folder.
-
-
Import SRDisplay XR UnityPlugin
-
Select Window > Package Manager and open the Package Manager.
Select the "+" in the upper left corner, and then select "Add package from disk...".
-
Open the package.json file in the com.sony.xr.srdisplay folder that you just copied.
-
SRDisplay XR UnityPlugin will appear in the Package Manager.
-
-
Activate the SRDisplay XR UnityPlugin.
- Open the Project Settings dialog from Edit > Project Settings.
- Select XR Plug-in Management and check the SRDisplay XR Loader.
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
Tips
Motion Blur affects the quality of the 3D display and should be turned off.