Meta Spatial SDK

On this page 7

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 blockWhat it isTypical role
EntityA lightweight scene identifierRepresents a model, panel or anchor
ComponentTyped data attached to an entityStores transform, mesh, grabbable state
SystemCode that runs each frameMoves objects, reacts to input, syncs state
PanelAn Android view rendered on a surface in 3DShows menus, forms, video or web content
Scene fileA composed layout exported from the editorPositions models, lights and panels
Core building blocks of a Meta Spatial SDK app

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.

CapabilityWhat it providesTypical use
PassthroughLive camera view of the roomMixed reality overlays
Scene and room dataPlanes, volumes and labeled furniturePlacing objects on real tables
Spatial anchorsPersistent world-locked positionsRestoring a layout next session
Hand trackingJoint poses for both handsController-free interaction
Spatial panels2D Android UI on 3D surfacesDashboards, settings, media
Spatial audioPosition-dependent soundDirectional cues and immersion
Commonly used capabilities and their purpose

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.

OptionLanguage and toolingStrengthMain limitation
Meta Spatial SDKKotlin, Android StudioNative Android reuse, light footprintMeta Quest devices only
Unity with Meta XR SDKC#, Unity EditorMature tooling, rich asset ecosystemEngine overhead, larger builds
Unreal Engine with OpenXRC++ and BlueprintsHigh-end renderingSteep learning curve
WebXRJavaScript, browserNo install, instant sharingLimited device feature access
RealityKit on visionOSSwift, XcodeDeep Apple platform integrationApple hardware only
Meta Spatial SDK compared with neighboring options

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 situationRecommended routeReason
Existing Android app moving to QuestMeta Spatial SDKReuses Kotlin code and UI libraries
Productivity or media toolMeta Spatial SDKPanels and passthrough dominate
Cross-platform VR gameUnity or UnrealEngine tooling and multi-store builds
Quick marketing demoWebXRLink sharing without installation
App targeting several headset brandsOpenXR through an engineWider device coverage
Decision guide for typical projects

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.