Last Updated
Spatial Reality Display View Space Scaling
You can change the scale between the Spatial Reality Display View Space in Unity and the real world.
Why View Space Scaling
Most asset sizes in Unity are actual sizes. That is, most human character models are approximately 1.5-2.0m, tree models are several meters, and buildings are tens of meters. However, the actual Spatial Reality Display size is 0.4x0.2x0.2m at most. Changing the scale of Unity's Spatial Reality Display View Space and the real world, this is View Space Scaling, allows you to display models of any size in Spatial Reality Display without changing the size of models to be displayed.
Prerequisites
- Setup your Spatial Reality Display, if not, see: Setup Spatial Reality Display,Setup Spatial Reality Display Settings
-
Set up your Unity project installed SRDisplay UnityPlugin, if not, see: Setup for Unity, Create your simple app "Hello cube!"
How to scale the View Space
Just change Spatial Reality Display View Space Scale in Spatial Reality DisplayManager component. You can see that the primitives(a cube, a sphere and a cylinder) are displayed in GameView without changing their scale. Also, the blue GIZMO box that describes the Spatial Reality Display view space is scaling with Spatial Reality Display View Space Scale.
Caution
The scale of SRDisplayManager GameObject is overridden by Spatial Reality Display View Space Scale. Even if you change the scale of SRDisplayManager GameObject, its scale will be Spatial Reality Display View Space Scale in runtime.
If you want to automatically resize your model according to the Spatial Reality Display View Space Scale, you can use the Spatial Reality Display View Space Scale Follower component.
The GameObjects with the Spatial Reality Display View Space Scale Follower component will automatically resize when the Spatial Reality Display View Space Scale changes. If Absolute Follow is enabled in Spatial Reality Display View Space Scale Follower, the GameObject will always be the same scale as Spatial Reality Display View Space Scale.