OpenXR Validation Layers for Android

The Khronos Group provides validation layers for OpenXR that can perform extra validation to ensure that Godot is using OpenXR correctly.

  • For Godot Android projects built with the Godot OpenXR Vendors plugin v5 or higher, all you need

to do is click a checkbox in your export settings to integrate the OpenXR validation layers!

../_images/editor_enable_validation_layers.png
  • Non-Godot Android projects can integrate the OpenXR validation layers by adding the following

Gradle dependencies:

// Grab the latest release.
implementation("org.khronos.openxr:apilayer_core_validation:+")
implementation("org.khronos.openxr:apilayer_best_practices_validation:+")

Note

The OpenXR validation layers are hosted on MavenCentral.