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:
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.
Open your project in the Unity Editor and select Window > Package Manager.
In the Package Manager, click + > Add package from tarball and open the tarball you downloaded.
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.
Navigate to Edit > Project Settings > Audio to open the Audio dialog.
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.
Set Default Speaker Mode to Stereo.
Set DSP Buffer Size to Best latency to set up the minimum supported buffer size for the platform, reducing overall audio latency.
Learn More
Now that the project is setup and ready to use you can start learning about the specific features of the SDK: