Develop
Develop
Select your platform

Mixed Reality Utility Kit - Samples

Updated: Dec 18, 2025

Overview

The MRUK Sample project contains samples that showcase how different mixed reality environments can be constructed. Using the MRUK Samples, you can explore sample scenes in the Unity Editor, observe how features are implemented, and learn how to integrate the MR Utility Kit SDK into your own projects. This project is available for download at the MRUK Sample GitHub repository.
For more information about the license, please refer to the LICENSE file in the root of the project.
Sample Location Change
Starting from version 76, the samples have been moved to the MRUK Sample GitHub repository. For versions older than 76, the samples are included in the MRUK package in Unity Package Manager → Mixed Reality Utility Kit → Samples.

Run the project in Unity

  1. Use the Code button on the GitHub repo or run:
    git clone https://github.com/oculus-samples/Unity-MRUtilityKitSample.git
    
  2. Make sure you are using Unity 2022.3.15f1 or newer.
  3. In the Unity Hub → Projects, click Add, then Add project from disk and select the folder you just cloned.
  4. Ensure the following are installed via the Asset Store inside your project:
  5. In Unity’s Project window, navigate to Assets/MRUKSamples to find and open the sample scenes.

Test samples on Meta Quest

  1. Navigate to File → Build Profiles and select the sample scene that you want to test on your device.
  2. Either Build And Run or build an APK and then navigate to the build destination folder and copy the APK to your device using Meta Quest Developer Hub.

Use samples in existing projects

There are two ways to integrate the samples into an existing project that uses the same Unity version.

A. Move samples to your project

Copy the AssetsMRUKSamples directory to your own project

B. Create UnityPackage to import

  1. Open the Unity-MRUtilityKitSample project in Unity.
  2. Navigate to the Assets folder and right-click on MRUKSamples and select Export Package....
  3. Save the package in an easy location to retrieve later.
  4. Open your own project and click on AssetsImport PackageCustom Package... from the menu bar.
  5. Find the package you saved in step 3 and click Open.

Sample Library

MRUKBase Sample
MRUKBase
A basic scene showing the core functionality of MR Utility Kit leveraging the EffectMesh prefab to visualize the scene data.
View sample
Floor Zone Sample
Floor Zone
Identify a clean, unobstructed floor area in the room using semantic anchor data.
View sample
Multi Spawn Sample
Multi Spawn
Spawn multiple prefabs across different locations in a room using anchor queries and spacing constraints.
View sample
NavMesh Sample
Nav Mesh
Create a Unity NavMesh for AI agents to move intelligently around the physical room using spatial data.
View sample
VirtualHome Sample
Virtual Home
Reskin the real world with a customizable prefab-based interior layout using semantic anchors.
View sample
Passthrough Relighting Sample
Passthrough Relighting
Apply virtual lighting and shadows to passthrough content using live scene data and interactive controls.
View sample
Scene Decorator Sample
Scene Decorator
Automatically populate rooms with decoration presets applied using placement constraints and surface masks.
View sample
Destructible Mesh Sample
Destructible Mesh
Create destructible geometry by segmenting the global mesh. Interact using controllers or editor tools.
View sample
Environment Panel Placement
Environment Panel Placement
Use the Environment Raycasting API to anchor UI panels to vertical surfaces in your room.
View sample
Space Map Sample
Space Map
Visualize a room map using a texture-based heatmap with gradient-based spatial indicators.
View sample
Keyboard Tracking Sample
Keyboard Tracking
Track and visualize a physical keyboard using MRUK-compatible object tracking.
View sample
Bouncing Ball Sample
Bouncing Ball
Demonstrates physics interactions as virtual balls collide with the scanned environment’s structure.
View sample
A Detected QR Code
QR Code Detection
Identify and track QR codes in real-world environments.
View sample

Previous:Debug Your MRUK App
MRUK Samples & Tutorials
Mixed Reality Design Principles
Did you find this page helpful?