Code samples

Explore how Meta Horizon can transform your ideas into virtual experiences.

Unity (52)

View all Unity docs
UNITYMulti Object Detection
Demonstrates multi-object detection using the Passthrough Camera API in Unity.
CAMERA ACCESS, AI ML
UNITYCamera Viewer
Demonstrates live camera feed viewing using the Passthrough Camera API in Unity.
CAMERA ACCESS, PASSTHROUGH
UNITYCamera To World
Demonstrates mapping camera coordinates to world space using Passthrough Camera API.
CAMERA ACCESS, PASSTHROUGH
UNITYBrightness Estimation
Demonstrates brightness estimation using the Passthrough Camera API in Unity.
CAMERA ACCESS, PASSTHROUGH
Show 48 more UNITY samples

Unreal Engine (30)

View all Unreal Engine docs
UNREAL ENGINEUnreal PerformanceSettings
Explore how various settings can affect CPU and GPU performance in exchange for visual fidelity.
PERFORMANCE
UNREAL ENGINEUnreal OBBSample
shows how to break large projects into multiple OBB files and upload them.
PLATFORM
UNREAL ENGINEUnreal MRUtilityKitSample
MRUK ('Mixed Reality Utility Kit') provides a rich set of utilities/tools on top of Scene API to perform common operations when building spatially-aware apps in Unreal.
SCENE, PASSTHROUGH
UNREAL ENGINEUnreal Colocation DiscoverySample
A sample that demonstrates how to use Colocation Discovery and Group Sharing features in Unreal.
COLOCATION, MULTIPLAYER
Show 26 more UNREAL samples

Native and OpenXR (2)

View all Native and OpenXR docs
NATIVE AND OPENXROrchestrator
Orchestrator is a service that provides building blocks for predictable, performant, and extensible resource management on Linux.
NATIVE AND OPENXRMeta OpenXR-SDK
Meta OpenXR SDK includes OpenXR API resources for all Quest devices native development. Your use of this SDK or tool is subject to the Oculus SDK License Agreement, available at https://developer.oculus.com/licenses/oculussdk/
PLATFORM

Web (7)

View all Web docs
WEBWebxr First Steps
Your first steps into immersive web development with WebXR, powered by React.
INTERACTION
WEBProject Flowerbed
Project Flowerbed is an immersive VR gardening experience. Explore a tranquil island, plant and grow flora, and capture your garden's growth to share with friends. Celebrating WebXR's potential, it's fully open source for global c...
GRAPHICS, PERFORMANCE
WEBChairs Etc
Chairs Etc. is an interactive Mixed Reality experience envisioning what the future of furniture shopping could look like on the spatial web. Users can seamlessly place, rotate and drag virtual chairs in their physical environment ...
PASSTHROUGH, PERFORMANCE, UI
WEBRealMeasure
RealMeasure is the Mixed Reality tool that lets users take real-life measurements in headset using their controllers!
INTERACTION, PASSTHROUGH, PERFORMANCE, UI
Show 3 more WEB samples

Meta Spatial SDK (16)

View all Meta Spatial SDK docs
META SPATIAL SDKAnimations Sample
Demonstrates animation systems using Meta Spatial SDK for Android.
GRAPHICS
META SPATIAL SDKUISet Sample
Demonstrates UI panel and widget systems in Meta Spatial SDK.
UI
META SPATIAL SDKStarter Sample
Starter template sample for Meta Spatial SDK development.
META SPATIAL SDKSplat Sample
Demonstrates Gaussian Splat rendering in Meta Spatial SDK.
GRAPHICS
Show 12 more SPATIAL_SDK samples

Android apps (19)

View all Android apps docs
ANDROID APPSUsers
Android sample demonstrating Meta Horizon Platform SDK: users feature.
PLATFORM, SOCIAL
ANDROID APPSUser Age Category
Android sample demonstrating Meta Horizon Platform SDK: useragecategory feature.
PLATFORM
ANDROID APPSRich Presence
Android sample demonstrating Meta Horizon Platform SDK: richpresence feature.
PLATFORM, SOCIAL
ANDROID APPSRate and Review
Android sample demonstrating Meta Horizon Platform SDK: rateandreview feature.
PLATFORM, ENAGAGEMENT
Show 15 more ANDROID samples