Quickstart

Table of Contents

Creating Your First App

Let's develop a Spatial Reality Display ELF-MN1 app in Unity!
When you place the PortraitSRDisplayManager, you'll be able to output to two screens: one displayed on the Spatial Reality Display and one on your smartphone.

  1. The Spatial Reality Display must be set up. If it is not set up, see Setting Up Spatial Reality Display Settings.
  2. You must have a Unity project with the SRDisplay Unity Plugin installed. If you do not have one ready, see Setting Up Unity.

Adding PortraitSRDisplayManager

  1. Open a new scene by selecting File > New Scene, then delete the default main camera from the Scene.




  2. Place the PortraitSRDisplayManager Prefab in the Scene's Hierarchy
    The PortraitSRDisplayManager Prefab is located in Assets / SRDisplayUnityPlugin / Runtime / Prefabs



    You will then see a blue wireframe GIZMO box and a cyan wireframe GIZMO plane.

Tips

The blue GIZMO represents the viewspace of the Spatial Reality Display, while the cyan plane represents the actual screen of the Spatial Reality Display. The default scale of the GIZMO is the same as that of the actual Spatial Reality Display, assuming that 1 Unity scale unit equals 1 meter.

Tips

Unity's default scale is very large for the Spatial Reality Display, so you may have trouble finding the GIZMO or planes. In that case, you may not be able to find the GIZMO or planes unless you zoom in on the origin of the World coordinates in the Scene View. To zoom in quickly, select SRDisplayBox in the Hierarchy View, then hold down the SHIFT key and press the “F” key.

  1. You can use the SRDisplayBox prefab to display the floor and walls (transparent) of the Spatial Reality Display.



  2. You can place any object here.


Tips

If you use the default Unity scaling, the Spatial Reality Display will appear smaller.


If necessary, adjust the size of the object so that it fits within the Spatial Reality Display's camera view, or consider using view space scaling.

Tips

Objects must be located within the Spatial Reality Display View Space. If an object extends beyond the View Space, consider using Spatial Clipping.

Tips: Spatial Clipping may cause side effects with some shaders (materials and particles).
For details, see Tips. 

 

The object selected as “Display 1” in the “Target Display” field serves as the UI screen.
In the sample, “Canvas” is selected as Display 1.

Building and Running the App

Windows

  1. Click the “Add Open Scenes” button to include the current scene when building the file.

  2. Make sure that “Architecture” is set to “Intel 64-bit.”



  3. Click “Build,” then select the folder where you want to save the app.



  4. Unity creates an executable file in that folder. Clicking the created file launches the content on the Spatial Reality Display.

Android

  1. Click the “Add Open Scenes” button to include the current scene when building the file.



  2. Click “Build,” then enter a name for the app and select the folder where you want to save it.
  3. Install the built application on your Android smartphone and run it.



Note

For detailed information on Android build settings, please refer to Builds for Android.

iOS

  1. Click the “Add Open Scenes” button to include the current scene when building the file.



  2. Click “Build” and select the folder containing the Xcode project you want to build.
  3. Launch the exported Xcode project, install it on your iPhone, and run it.


Developer Contact・
Commercial Use