UnityRef is currently in early development. Some features may be incomplete and/or not functioning.

UNITYREF

Your Pit Stop For Solving ANYTHING in Unity

graphics

[Meta XR] Simulator Fails with OpenXR Shutdown

Solution

graphicsvirtual realityrenderingxropenxr

Unity 2021.3.x - Unity 6.3.x

Published 10 days ago

Issue

 When attempting to use the Meta XR Simulator with a Unity project, the simulator activates and reports XR_SELECTED_RUNTIME_JSON being set, but the application fails to run. After a delay, the console logs Shutting down OpenXR and the Play mode is cancelled without other explicit errors.

When encountering issues with Meta XR Simulator initialization, ensure that Vulkan is included in the project's supported graphics APIs for the target platform.

Explanation

The core issue is caused by a missing dependency on the Vulkan graphics API required by the simulator. To resolve this, the Vulkan backend must be added to the prioritized list of graphics APIs for your build. This configuration is managed within the Project Settings.

  1. Open Project Settings and select Player.
  2. Locate the Other Settings section within the Windows (Standalone) tab.
  3. Find the Graphics APIs list and ensure Auto Graphics API is disabled.
  4. Click the plus button and select Vulkan from the dropdown menu.
  5. Drag Vulkan to the top of the list to set it as the primary backend.
  6. Restart the Unity Editor to ensure the graphics driver reinitializes.

Additional Tips

  • Ensure the Meta XR Simulator is active in the XR Plug-in Management settings.
  • Verify that your GPU drivers support the latest Vulkan runtime versions.
  • Check that the OpenXR loader is enabled for the target platform.

Related Posts Haven't quite found a solution to your problem? We think these posts might help you.

Content inspired by a Unity discussion post.