Develop
Develop
Select your platform

Meta XR Audio SDK Plugin for Unity - Requirements and setup

Updated: Feb 18, 2025

Overview

Meta XR Audio is an plugin for Unity that allows point source and ambisonic sounds to be spatialized in 3D relative to the user’s head location. It also provides a basic room acoustics model for early reflections and reverb.
For a detailed discussion of audio spatialization and virtual reality audio, you can review the Introduction to Virtual Reality Audio guide. If you’re unfamiliar with Unity’s audio handling, be sure to review the Unity Audio guide.

Prerequisites

Before proceeding with this tutorial, complete the setup steps outlined in Set Up Unity for XR development to create a project with the necessary dependencies.

Install the Meta XR Audio SDK

If you intend to use FMOD or Wwise for audio in your Unity application, you should not install the Meta XR Audio SDK Plugin for Unity. Instead, install the corresponding FMOD or Wwise plugin package.

Method 1: Download via the Unity Asset Store

The Meta XR Audio SDK Unity package is available in the Unity Asset Store. Install the package as you would any other Asset Store package:
  1. In a web browser, go to Meta XR Audio SDK.
    Note: If you don’t have a Unity ID, you’ll need to create one and log in. For more information, see Unity’s documentation.
  2. Click Add to My Assets.
  3. Log in to the Unity Hub with the same Unity ID and open your project in the Unity Editor.
  4. In the Unity Package Manager, select My Assets > Meta XR Audio SDK.
  5. Click Install.

Method 2: Download via the Meta Horizon Developer Center

  1. Go to Meta XR Audio SDK (UPM) and click Download from Meta.
  2. Click the download icon, then read the license agreement and click Agree when you’re ready. Your browser begins downloading a com.meta.xr.sdk.audio tarball.
  3. Open your project in the Unity Editor and select Window > Package Manager.
  4. In the Package Manager, click + > Add package from tarball and open the tarball you downloaded.
For more information about the Unity Package Manager, see Unity’s documentation.

Installing the Samples (Optional)

After installing the plugin via either of the methods above, you can import the sample scenes to get started and check your setup. To do this, navigate to the package entry in Package Manager. Click Meta XR Audio SDK Package > Samples > Import to add new scenes and assets to the Unity Project folder. Once imported, the sample content will appear at the following path within your project: Assets > Samples > Meta XR Audio SDK > version > Examples Scenes. Load the scenes in the folder and begin exploring. They are meant for Play Mode only testing using typical WASD keys and mouse control.

Unity Project Setup

Set your spatialization engine to Meta so that all native audio sources will propagate through the Meta plugins spatializer.
  1. Navigate to Edit > Project Settings > Audio to open the Audio dialog.
  2. In the Audio dialog, verify that Meta XR Audio is selected as the Spatializer Plugin and the Ambisonics Decoder Plugin. For more information, see Play Ambisonic Audio in Unity.
  3. Set Default Speaker Mode to Stereo.
  4. Set DSP Buffer Size to Best latency to set up the minimum supported buffer size for the platform, reducing overall audio latency.
    Check Meta XR Audio SDK is set as Audio plugin

Learn More

Now that the project is setup and ready to use you can start learning about the specific features of the SDK:
Did you find this page helpful?