Meta Spatial SDK is a native Android framework, written for Kotlin, that lets developers build immersive and mixed reality applications for Meta Quest headsets without a game engine such as Unity or Unreal. In XR development, it occupies the space between flat Android apps and full engine-based titles: teams keep their Android Studio workflow, Gradle builds and existing Android libraries, and add 3D scenes, passthrough, hand input and spatial panels on top.
Within extended reality, the SDK targets a specific gap. Many useful headset applications are productivity tools, media players, configurators or training aids that need 2D interfaces placed in 3D space more than they need a complex game loop. For such projects, the SDK offers a lighter path to Meta Horizon OS than an engine pipeline, while still running on the industry-standard OpenXR runtime underneath.
How Meta Spatial SDK structures an application
Meta Spatial SDK organizes every application around an entity component system (ECS), an architecture in which scene objects are plain identifiers and behavior lives in separate code units. An entity represents anything in the scene, a component stores typed data attached to it, and a system runs every frame to read and update components. This separation keeps rendering, input and logic decoupled and makes large scenes easier to reason about.
The application itself starts from an Android activity subclass supplied by the SDK, which owns the OpenXR session, the render loop and the registration of systems. Developers write ordinary Kotlin, register custom components and systems, and load 3D content in the glTF and GLB formats. The rendering layer applies physically based rendering, image-based lighting and the headset’s compositor layers without exposing low-level graphics code.
The following table summarizes the main building blocks and their roles.
| Building block | What it is | Typical role |
|---|---|---|
| Entity | A lightweight scene identifier | Represents a model, panel or anchor |
| Component | Typed data attached to an entity | Stores transform, mesh, grabbable state |
| System | Code that runs each frame | Moves objects, reacts to input, syncs state |
| Panel | An Android view rendered on a surface in 3D | Shows menus, forms, video or web content |
| Scene file | A composed layout exported from the editor | Positions models, lights and panels |
Key capabilities for mixed reality
The SDK exposes the headset features most mixed reality apps need through Kotlin APIs rather than engine plugins. Passthrough shows the physical room behind virtual content, scene understanding supplies walls, floors and furniture as geometry, and spatial anchors pin content to real locations so it reappears in the same place across sessions.
Input arrives from tracked controllers and articulated hand tracking, with built-in behaviors for pointing, grabbing and poking panels. Audio can be spatialized relative to the listener, and a physics integration handles collisions and simple rigid bodies. The table below lists the capabilities most often used and what they enable.
| Capability | What it provides | Typical use |
|---|---|---|
| Passthrough | Live camera view of the room | Mixed reality overlays |
| Scene and room data | Planes, volumes and labeled furniture | Placing objects on real tables |
| Spatial anchors | Persistent world-locked positions | Restoring a layout next session |
| Hand tracking | Joint poses for both hands | Controller-free interaction |
| Spatial panels | 2D Android UI on 3D surfaces | Dashboards, settings, media |
| Spatial audio | Position-dependent sound | Directional cues and immersion |
A companion desktop tool, Meta Spatial Editor, lets designers compose scenes visually by importing models, placing panels and adjusting lighting. The exported scene is loaded by the app at run time, which supports a designer-developer split similar to layout files in conventional Android development.
How it compares with other XR toolkits
Meta Spatial SDK is one of several routes to the same headset, and the right choice depends on the team’s skills and the app’s ambitions. Unity with the Meta XR All-in-One SDK remains the dominant path for games, while WebXR runs in the browser with no installation. Android XR and visionOS are separate platforms with their own native frameworks.
| Option | Language and tooling | Strength | Main limitation |
|---|---|---|---|
| Meta Spatial SDK | Kotlin, Android Studio | Native Android reuse, light footprint | Meta Quest devices only |
| Unity with Meta XR SDK | C#, Unity Editor | Mature tooling, rich asset ecosystem | Engine overhead, larger builds |
| Unreal Engine with OpenXR | C++ and Blueprints | High-end rendering | Steep learning curve |
| WebXR | JavaScript, browser | No install, instant sharing | Limited device feature access |
| RealityKit on visionOS | Swift, Xcode | Deep Apple platform integration | Apple hardware only |
A frequent misconception is that the SDK replaces OpenXR. In fact it sits on top of the OpenXR runtime that Meta Horizon OS provides, so it inherits standard session handling and tracking while hiding the verbose OpenXR API behind higher-level Kotlin abstractions.
When to choose Meta Spatial SDK
The SDK is strongest for app-like experiences where most interaction happens through panels and a modest number of 3D objects. It is less suited to physics-heavy games or titles that must ship on many headset brands. The decision table below reflects common project profiles.
| Project situation | Recommended route | Reason |
|---|---|---|
| Existing Android app moving to Quest | Meta Spatial SDK | Reuses Kotlin code and UI libraries |
| Productivity or media tool | Meta Spatial SDK | Panels and passthrough dominate |
| Cross-platform VR game | Unity or Unreal | Engine tooling and multi-store builds |
| Quick marketing demo | WebXR | Link sharing without installation |
| App targeting several headset brands | OpenXR through an engine | Wider device coverage |
Teams adopting the SDK should plan for Kotlin and Android expertise first, with 3D skills second. Familiarity with Jetpack Compose or classic Android views pays off directly, because panels render those same UI toolkits inside the headset.
Limitations and common mistakes
The most important limitation is platform lock-in: an app built on the SDK runs on Meta Quest hardware and does not port automatically to other headsets. The framework is also younger than the major engines, so documentation, samples and third-party assets are thinner, and APIs may change between releases.
- Treating panels as flat screens: panels need larger text, generous spacing and comfortable viewing distances, typically about one to two meters.
- Ignoring frame budgets: heavy per-frame work in systems causes dropped frames, which quickly produces discomfort; profiling on device is essential.
- Oversized assets: uncompressed glTF models with high polygon counts inflate memory use and loading time on mobile hardware.
- Skipping permission handling: scene data and spatial features require explicit user permissions that must be requested and handled gracefully.
Stripped to the essentials
Meta Spatial SDK is a toolkit for building apps for Meta Quest headsets. Android programmers use the language and tools they already know. They skip the large game engine. They write normal Android code and add 3D objects, floating windows and views of the real room.
Think of it as turning a phone app into something that hangs in the air around you. The key point is familiarity. The SDK gives up some flexibility and reach across devices. In return, it offers a much shorter path from Android skills to a working headset app.
Where it is applied
A small engineering firm maintains an Android tablet app that technicians use to review equipment manuals and checklists. The firm wants the same tool on Meta Quest 3 so technicians can keep both hands free while inspecting machinery.
Using Meta Spatial SDK, two Kotlin developers reuse the existing data layer and Compose screens, presenting the checklist as a floating panel anchored beside the machine with passthrough enabled. A 3D model of the pump, exported from CAD as a GLB file, sits on a detected workbench and highlights the part currently being inspected. A spatial anchor restores the layout each morning.
The first internal build is ready in roughly six weeks instead of the several months estimated for an engine rewrite, and technicians complete inspections without switching between tablet and machine.