[Meta XR] Simulator Fails with OpenXR Shutdown
Solution
Unity 2021.3.x - Unity 6.3.x
Published 10 days ago
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.
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.
- Open
Project Settingsand selectPlayer. - Locate the
Other Settingssection within the Windows (Standalone) tab. - Find the
Graphics APIslist and ensureAuto Graphics APIis disabled. - Click the plus button and select Vulkan from the dropdown menu.
- Drag Vulkan to the top of the list to set it as the primary backend.
- Restart the
Unity Editorto ensure the graphics driver reinitializes.
Additional Tips
- Ensure the
Meta XR Simulatoris active in theXR Plug-in Managementsettings. - Verify that your GPU drivers support the latest Vulkan runtime versions.
- Check that the
OpenXRloader 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.