OpenXR Stereo Layers Quick Start

Learn how to add an OpenXR Stereo Layer to your project.

This page describes how to get started with Stereo Layers in your OpenXR project.

The steps and images on this page use the VR Template Project as a starting point. The steps should apply to any project set up for OpenXR.

To add an OpenXR Stereo Layer to your project's Pawn:

  1. In the Content Drawer, navigate to Content > VRTemplate > Blueprints and double-click the VRPawn Asset to open it in the Blueprint Editor.


  2. In the Components panel of the Blueprint Editor, click the Add Component button and search for Stereo Layer.


  3. Drag the new Stereo Layer Component on top of the Camera Component to make it a Child Actor of the Camera.


  4. Select the Stereo Layer Component from the Components list to open its Details panel. Under the Transform section, set the X value of Location to 100.


  5. Switch to the Viewport tab of the Blueprint Editor to see the location of the Stereo Layer relative to the Pawn's Camera.


  6. In the Details panel, under the Stereo Layer section:

    • Assign a texture to the Texture parameter. In this example, the T_Grid texture is used.

    • Set the Stereo Layer Shape to Quad Layer.


  7. Compile the Blueprint and close the Blueprint Editor.


  8. Press Play in VR to launch your project on the headset and verify that the texture is displayed in front of you and locked to the HMD.

    image alt text

To change where the Stereo Layer appears, change the Stereo Layer Type parameter. See the OpenXR Stereo Layers Overview for details on the available options.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey