SONY

menu
Search button in the site

Open the search area of the siteく

Set up for Unity

This page shows how to enable Spatial Reality Display(SR Display) in your Unity projects.

  1. Setup your SR Display, if not, see: Setup SR DisplaySetup SR Display Runtime
  2. Prepare your own Unity project, if not, try Quickstart

  1. 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.

  2. Create a new unity project
  3. Import SRDisplay UnityPlugin
    1. Select Assets > Import Package > Custom Package and select srdisplay-unity-plugin.unitypackage that you downloaded

    2. Or you can drag & drop srdisplay-unity-plugin.unitypackage to Project in the UnityEditor, also.

  4. 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)

  5. 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 supports Windows x86_64 architecture only

    Caution

    Only "Mono" is supported for "Scripting Backend" in the Project Settings.
    Make sure that "Project Settings"-> "Player"-> "Scripting Backend" is set to "Mono".

  1. We recommend to set Don't Sync in VSync Count in all Quality Levels (See: Minimize the latency for good user experience in Tips and Constraints

  2. [Optional] When you use Unity 2018.4, You can disable Display Resolution Dialog if you want. When the app where it is disabled is launched, the app will be shown in SR Display automatically. However, the splash of the app where Display Resolution Dialog is disabled may not be fullscreen.

    1. Go to Edit > Project Settings... > Player > Resolution and Presentation

    2. Set Disabled in Display Resolution Dialog

Tips

When the app where Display Resolution Dialog is enabled is launched and if the wrong settings in the dialog are selected, the app does NOT work as expected.

  1. Set Target Architecture

    1. Open Build Settings dialog from File > Build Settings

    2. Make sure that Architecture is x86_64