SONY

menu
Search button in the site

Open the search area of the siteく

Create your simple app "Hello cube!"

Let's try to develop your Spatial Reality Display(SR Display) app in Unity !

  1. Setup your SR Display, if not, see: Setup SR DisplaySetup SR Display Runtime
  2. Set up your Unity project installed SRDisplay UnityPlugin, if not, see: Set up for Unity

  1. Open a new scene from File > New Scene and remove Main Camera (prepared by default) from the scene

  2. Put SRDisplayManager Prefab in your scene Hierarchy

    1. You can find SRDisplayManager Prefab in Assets / SRDisplayUnityPlugin / Runtime / Prefabs

Then, you can see a blue wireframe GIZMO box and a cyan wireframe GIZMO plane.

Tips

The blue GIZMO box describes the View Space in SR Display and the cyan GIZMO plane describes the actual SR Display screen plane. The default scale of these GIZMOs is the same as the actual SR Display, if Unity scale 1 means 1 meter.

Tips

The default scale in Unity is so big for SR Display that you may miss the GIZMO box and plane. You may need to zoom to the world origin in Scene View to find the GIZMO box and plane. To quickly zoom in, select the SRDisplayBox in the Hierarchy view and hold down the SHIFT key and press the ‘F’ key.

  1. You can use SRDisplayBox Prefab that shows the floor and walls(transparent) of SR Display.

  2. You can place any objects

Tips

The scale of the SR Display is small when using the default Unity scaling.

You may need to adjust your objects size or use View Space Scaling to fit within the SR Display camera view.

Caution

Objects should be inside of the SR Display View Space. If objects stick out of the View Space, we recommend to use Spatial Clipping. However, Spatial Clipping has some side effect to some shaders (See for the details: Spatial Clipping has side effects on some shaders).

  1. Configure Project Settings from Edit > Project Settings...

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

  2. Open Build Settings dialog from File > Build Settings and double-check your configuration settings.

    1. Add your scene to Scenes In Build in Build Settings

    2. Make sure that Architecture is x86_64

  3. Click Build in Build Settings and choose the folder you want to save the app, then you can get the app file(.exe).

  4. Unity will create an executable file in that folder. Click on that file and it will launch the content on the SR Display.

  5. If using Unity 2018.4, you will find Display Resolution Dialog when you run the app. You MUST choose the correct settings.

    1. Choose the Select monitor as SR Display

    2. Choose the Screen resolution as 3840x2160

    3. If Select monitor is not SR Display, you may not find 3840x2160 in Screen resolution