Every headset or glasses platform that wants to run more than one spatial app at once in the same room eventually needs an answer to the same question: whose app gets to put something where? OpenXR’s spatial container extensions, ratified and published to the OpenXR Registry this fall, give runtimes a standardized answer instead of a platform-specific one.
What a spatial container actually is
A spatial container is a bounded region of physical space that an app can request, occupy, and render into — the OpenXR equivalent of a window, but anchored to a real location in a room rather than a position on a 2D screen. The feature ships as two extensions:
XR_EXT_spatial_container— creating and managing a container: claiming a region, tracking it, releasing it.XR_EXT_spatial_container_self_rendering— drawing directly into a container using composition layers, rather than handing content off to the runtime to compose for you.
Together they standardize the same category of feature Apple shipped for visionOS’s windowed multitasking, except cross-platform: Road to VR’s coverage of the announcement framed it directly as “OpenXR Takes a Page From Apple,” and Khronos’s own announcement expects implementations across the OpenXR ecosystem through 2026 and beyond. Android XR is the first confirmed adopter, requiring Spatial API Level 4 or higher, with developer guides already published for both the native API and Godot.
Where this is actually headed
As of this extension’s ratification, no headset ships end-user support yet — this is infrastructure landing ahead of the apps that will use it, which is normal for a cross-platform standard. Godot’s lead Android maintainer contributed the reference sample, which is a good sign for engine-level adoption timing: expect Godot and Unity support to track close behind whichever runtimes implement the extension first.
Try it yourself
- Read the extension spec directly in the OpenXR Registry —
XR_EXT_spatial_containerfor container lifecycle,XR_EXT_spatial_container_self_renderingfor composing content into one yourself. - Start from Khronos’s own sample,
openxr_program_spatial_containers.cpp, available viakhr.io/hellospatialcontainers— it’s a minimal, runnable reference rather than a full app. - If you’re targeting Android XR specifically, follow Android’s own Spatial Containers developer guide, which documents the platform-specific requirements (API Level 4+) on top of the base OpenXR extension.
- If you’d rather work in an engine than raw OpenXR calls, check Godot’s spatial-containers documentation — it wraps the same extension behind Godot’s XR nodes.
- Pair this with our existing OpenXR From Zero tutorial if you haven’t set up a basic cross-platform OpenXR project yet — spatial containers build directly on that foundation rather than replacing it.