Develop

Meta XR TapeDeck for Unity

Updated: May 20, 2026
The Meta XR TapeDeck Unity package bundles the TapeDeck OpenXR API layer inside your Quest app so Meta VR Developer Hub (MVDH) can record OpenXR interactions (for example, poses, actions, hand-tracking, and eye-tracking) and deterministically replay them in later sessions. The bundled-layer flow works on Quest devices without root access.

Use cases

  • Bug reproduction: capture a problematic session once and replay it as many times as you need.
  • Performance regression testing: replay the same input stream against successive builds.
  • Automated UI testing: script gameplay flows without a human tester.

Prerequisites

Before you begin, ensure you have the following:

Hardware requirements

  • Supported Meta Quest headsets:
    • Quest 2
    • Quest Pro
    • Quest 3
    • Quest 3S and 3S Xbox Edition
  • Architecture: arm64-v8a only

Software requirements

  • Unity Editor 6000.0.66f2 or later (6.1 or later recommended)
    • Modules:
      • Android Build Support
      • OpenJDK
      • Android SDK & NDK Tools
    • Packages:
      • XR provider plugin

Additional requirements

  • Unity OpenXR Plugin: com.unity.xr.openxr v1.17.0 or later

Install and configure TapeDeck

Step 1: Install the package

  1. In Unity Editor, navigate to Window > Package Manager.
  2. Click the plus button (+) and select Add package from tarball....
  3. Locate the com.meta.xr.tapedeck-{VERSION}.tgz archive and click Install. Unity copies the package into your Packages/com.meta.xr.tapedeck project directory.

Step 2: Declare the TapeDeck marker in your Android manifest file

The package ships a sample Plugins/Android/AndroidManifest.xml file that contains entries that MVDH needs to detect your compatibility with TapeDeck.
Either rely on the Editor/TapedeckPostprocess.cs script (shipped in the package), which logs a warning at build time when the entries are missing, or paste the following text into your app’s Assets/Plugins/Android/AndroidManifest.xml file directly:
<application>
  <meta-data
      android:name="com.meta.xr.tapedeck.sdk_version"
      android:value="1" />
  <uses-library
      android:name="libXrApiLayer_META_tapedeck"
      android:required="false" />
</application>
What each entry does:
  • The <meta-data> marker advertises that your APK bundles the TapeDeck layer. MVDH probes installed APKs for this marker and surfaces a Per-App TapeDeck indicator in the device-actions panel for matching apps.
  • The <uses-library> entry is a discovery hint that helps the Android linker locate libXrApiLayer_META_tapedeck.so inside your APK so the OpenXR loader can find it at process start. The android:required="false" attribute means the system will not refuse to start your app if the library is unavailable.

Step 3: Build and install your app

To install your APK on a connected Quest device, navigate to File > Build And Run in Unity. Unity builds your APK and installs it on the connected device. MVDH detects the marker on its next package list refresh and surfaces the Per-App TapeDeck flow in the device-actions panel.

Step 4: Record and replay from MVDH

In MVDH, with your Quest device selected:
  1. Open the TapeDeck action card.
  2. Click Record, pick your title from the dropdown, then click Record with TapeDeck.
  3. MVDH launches your app and records the session. Stop your app when you’re done — MVDH pulls the recording (tapedeck_recording.vrs) into its local recordings folder automatically.
  4. To replay: click Replay, pick the title and the recording, then click Replay with TapeDeck. MVDH pushes the recording back to the device and re-launches your app to play it back.

How it works under the hood

When MVDH arms a recording session for your app, it pushes a small JSON config file into your app’s external storage:
/sdcard/Android/data/{YOUR_PACKAGE}/files/tapedeck/tapedeck_config.json
On the next launch of your app, the bundled TapeDeck layer reads that config, opens a .vrs file in the same directory, and starts capturing OpenXR data. When the app exits, MVDH pulls the .vrs back over adb. Everything stays in your app’s app-scoped storage — no setprop, no adb root, no system-partition writes.

In-app helpers (optional)

The package ships a small Meta.XR.Tapedeck.TapedeckBindings static class so your app can surface a TapeDeck active indicator when MVDH has armed a session. Because IsConfigStaged() performs a filesystem check on every call, throttle the check (for example, once per second) rather than calling it from Update() every frame:
using Meta.XR.Tapedeck;
using UnityEngine;

public class TapedeckIndicator : MonoBehaviour
{
    private const float CheckIntervalSeconds = 1.0f;
    private float _nextCheckTime;
    private bool _isStaged;

    void Update()
    {
        if (Time.unscaledTime >= _nextCheckTime)
        {
            _isStaged = TapedeckBindings.IsConfigStaged();
            _nextCheckTime = Time.unscaledTime + CheckIntervalSeconds;
        }

        if (_isStaged)
        {
            // MQDH has staged a record / replay config for this app.
            // Render a small "● Recording" indicator if you want.
        }
    }
}
TapedeckBindings.IsLayerLoaded() returns whether the OpenXR runtime reports the TapeDeck layer is enabled for this process. TapedeckBindings.IsConfigStaged() returns whether tapedeck_config.json exists in your app’s external-storage TapeDeck directory.

Optional: Disable the layer at runtime

The TapeDeck layer is shipped as an implicit OpenXR layer. Its loader manifest is bundled inside the AAR at assets/openxr/1/api_layers/implicit.d/XrApiLayer_META_tapedeck.json, where the Android OpenXR loader probes for it at xrCreateInstance time. There is no per-project Unity setting to enable; the layer is loaded into your app whenever the OpenXR loader brings up an instance.
If you need to disable the layer at runtime in a ship build that has no need to expose record / replay, set the DISABLE_XR_API_LAYER_TAPEDECK environment variable before your app calls xrCreateInstance.

Privacy

The TapeDeck layer records OpenXR pose, action, hand-tracking, and eye-tracking data while your app is running. The recorded .vrs file is written to your app’s external storage at /sdcard/Android/data/{YOUR_PACKAGE}/files/tapedeck/tapedeck_recording.vrs, which is accessible only to your app and to adb users (developer machines). It does not leave the device automatically.
The host app's existing Meta XR consents apply. TapeDeck inherits whatever permissions and consents your app has already obtained from the user. There are no additional user consents you need to gather specifically for TapeDeck.
If your app uses Hand Tracking, Eye Tracking, or Face Tracking, you must follow the corresponding Meta XR Privacy guidance:

Troubleshooting

MVDH doesn’t show my app under Per-App TapeDeck

Confirm the marker entry made it into your final APK:
aapt2 dump xmltree --file AndroidManifest.xml <your.apk> | grep tapedeck
The marker name must be exactly com.meta.xr.tapedeck.sdk_version.

The layer isn’t loaded at runtime

If TapedeckBindings.IsLayerLoaded() returns false:
  1. Confirm the .so is bundled in your APK at lib/arm64-v8a/libXrApiLayer_META_tapedeck.so:
    unzip -l <YOUR_APK> | grep tapedeck
    
  2. Confirm the loader manifest is bundled at assets/openxr/1/api_layers/implicit.d/XrApiLayer_META_tapedeck.json. The Android OpenXR loader probes those two paths automatically.
  3. If both files are inside the APK and the layer still doesn’t load, check the OpenXR loader log for parser errors:
    adb logcat -s OpenXR-Loader
    
  4. Confirm the DISABLE_XR_API_LAYER_TAPEDECK environment variable is unset.

Recording is empty

The layer requires the host app to be actively rendering frames (calling xrEndFrame). Ensure the display is awake; the layer doesn’t activate while the OpenXR session is paused.

Feedback

For issues, reproduction steps, and feature requests, file a support request through the Meta Horizon developer support portal.