Android XR now supports OpenXR Spatial Containers, a Khronos Group standard that gives developers a system-managed, bounded or unbounded 3D region to render into — rather than every app building its own ad hoc windowing and spatial-placement logic from scratch.
What a spatial container actually is
Google’s developer documentation describes a spatial container as a 3D region managed by the Android XR system itself, with the actual rendering still handled by your OpenXR app. The feature ships as two extensions: XR_EXT_spatial_container, which handles creating and managing the containers, and XR_EXT_spatial_container_self_rendering, which lets apps render their own content into that container using OpenXR composition layers. Khronos’s own announcement frames it as a standard specifically for the problem of multiple XR apps needing to share one physical space without stepping on each other’s content — a problem that’s only gotten more pressing as headsets move from single-app VR toward genuinely multitasking spatial computing.
Support requires a device running Spatial API Level 4 or higher, and Google recommends checking for the extensions at runtime rather than assuming a device meets that bar just because of its advertised API level.
Unity and Godot, with one real limitation
Google has published integration guides for both Unity and Godot. On the Godot side, support requires version 5.2 or higher of the Godot OpenXR Vendors Plugin to pick up the Android XR-specific extensions. On Unity, there’s a hardware caveat worth knowing: Vulkan subsampling isn’t compatible with Spatial Containers, so anyone relying on that optimization for performance will need to disable it to use the new feature.
The significant limitation, at least for this first implementation, is that Spatial Containers currently require an app to run in “Full Space Managed” mode rather than “Home Space” — which means even a standalone OpenXR app using spatial containers can’t currently display alongside content from a different app. That’s a real constraint on the “shared 3D windowing” framing: for now, this is a system-managed region for your app’s own content, not yet a way to compose multiple independent apps’ spatial windows together in the same view. Khronos’s standard is explicitly designed to eventually support that multi-app case; Android XR’s rollout just hasn’t gotten there yet.
Related Reading
- Build with Spatial Containers — Android Developers
- OpenXR Spatial Containers Bring a Cross-Platform Spatial Windowing API to XR — Khronos Blog
- Android XR Gets Spatial Container Support to Enable Multi-Engine Apps — UploadVR
- OpenXR’s new spatial containers let several XR apps share one space — Mixed News