Table of Contents

Preview a scene in VR

To preview your scene in your VR device, connect the editor to a VR-enabled renderer.

To do this:

  1. In the Asset View (in the bottom pane by default), double-click the Graphics Compositor asset.

    Graphics Compositor asset

    The graphics compositor editor opens.

    Graphics Compositor editor

  2. Select the forward render node connected to the editor node. For example, in the screenshot below (taken from the Stride VR sample project), the editor is connected to the lower forward renderer node.

    Node connections

  3. With the forward renderer node selected, in the Property Grid, enable VRRendererSettings.

    Select editor renderer

Your VR device displays the scene preview. To display the scene on your monitor instead, disable VRRendererSettings.

Create a separate renderer to preview scenes in VR

If your editor and game nodes are connected to the same forward renderer, you might want to create a separate renderer dedicated to the editor. This lets you easily switch between previewing the scene in your VR device and on your monitor.

Note

If your editor and game nodes already use separate renderers (as in the VR sample project), you don't need to follow these instructions.

  1. In the Asset View (in the bottom pane by default), double-click the Graphics Compositor asset.

    Graphics Compositor asset

    The graphics compositor editor opens.

    Graphics compositor editor

  2. Create a new forward renderer node. To do this, right-click the game compositor editor and select Create > Forward renderer.

    Create forward renderer

  3. Select the Entry points node.

    Entry points node

  4. In the Property Grid, next to Editor renderer, select the forward renderer you created.

    Select forward renderer

    Stride links the editor to the forward renderer node.

    Node connections

  5. Set the properties of the new forward renderer so they're identical to the forward renderer you use to run the game in VR, including the VR settings.

    Tip

    You can right-click a property to copy or paste it.

    Copy-paste properties

    Note

    Make sure the forward renderer has VR enabled. For instructions, see Enable VR.

Stride displays the scene preview in your VR device. To display the scene on your monitor instead, disable VRRendererSettings in the properties of the new forward renderer.

Enable VR

See also