This repo contains a reference app showcasing the uses of the Meta XR Audio plug-in for Unreal. From the main level, users can launch various other levels via a UI menu that showcase different features of the Meta XR Audio plug-in for Unreal.
An overview for using Meta's Presence Platform Audio SDK in Unreal can be found here.
Currently the plug-in only supports Windows development.
Launch the Visual Studio Installer and click Modify for the Visual Studio version you want to use. Under the Workloads tab, click Game development with C++ if it isn’t checked and then click Modify.
The project in this repository can be be compiled and installed onto Developer Mode Enabled Quest devices. Instructions for enabling developer mode on your Quest device can be found here.
The easiest way to get started is to use the prebuilt Unreal Engine from the Epic Games Launcher, with MetaXR plugin.
- Install the Epic Games Launcher
- Using the launcher, install UE5. Make sure the UE5 version you install is compatible with the UE version specified in the MetaXRAudioSample.uproject file of this repo.
- Download the MetaXR plugin from the Unreal Engine 5 Integration download page. Follow the instructions on that page to install the Meta XR Plug-in into the UE5 version you installed in step 2. Make sure the Meta XR Plug-in you download is compatible with the UE version you installed in step 2 (you may have to use the "Version" drop down menu to select previous versions).
- Launch the Unreal Editor.
- From "Recent Projects", click "Browse" and select the
MetaXRAudioSample.uprojectfile of this repo.
The Oculus Unreal fork will give you the most up to date integration of Oculus features. However, you must build the editor from its source.
Follow the instructions on Accessing Unreal Engine source code on GitHub to obtain:
- an Epic account
- a GitHub account
- authorization to access the Unreal Engine source repository Disregard instructions on downloading Epic’s Unreal Engine source code as you will be building the Oculus-VR fork of Unreal Engine source.
Make sure you have Visual Studio installed properly:
- Launch the Visual Studio Installer and click Modify for the Visual Studio version you want to use.
- Under the Workloads tab, click Game development with C++ if it isn’t checked and then click Modify.
- Download the source code from the Oculus-VR fork of Unreal Engine on GitHub. Checkout the branch of that repo that corresponds to the UE version specified in the MetaXRAudioSample.uporject file of this repo.
- Follow Epic’s instructions on Building Unreal Engine from Source to complete the process.
Depending on your machine, the build may take a while to complete.
It's suggested to use Oculus Link when in the Unreal Editor. Instructions for using Oculus Link can be found here.
- First download the Unreal plug-in from the Oculus Developer Center.
- Once downloaded, extract the .zip to a local folder on your machine.
- The downloaded SDK package contains a sub-folder titled “Unreal” and inside it the plugin is found in a folder named “MetaXRAudio”. Copy that plugin folder to “UnrealEnginePath\Engine\Plugins\Marketplace" to add it to your engine installation.
Up-to-date instructions to download and install the Meta Presence Platform XR Audio Plug-in can be found here.
First, ensure you have Git LFS installed by running this command:
git lfs installThen, clone this repo using the "Code" button above, or this command:
git clone https://github.com/oculus-samples/Unreal-MetaXRAudioSDKOnce the project is loaded, you might see a warning to rebake all lighting. To fix this warning (and make the demo look better when built):
- Filter the content browser and only display levels.
- Open each level listed with the filter applied and go to "Build" -> "Build All Levels"
- Make sure to save the level.
- To build the .apk, go to the Platforms Button -> Android -> Package Product.
- Choose any folder you want for the build destination and click "Ok".
The project should build successfully.
- Make sure you quest device is connected to your machine via USB-C cable
- Locate the build folder you specified above. In the ANDROID_ASTC folder, you'll find a
Install_MetaXRAudioSample-Android-Shipping-arm64.batfile (or similarly named). Double click that batch file to automatically install the .apk to your device. - Open the application through your Quest device's App Library. The application will likely be listed under the Unknown Sources section.
The Unreal-MetaXRAudioSDK repository including all packages and SDKs, is released under the Oculus SDK License. You may obtain a copy of the SDK License at https://developer.oculus.com/licenses/oculussdk/
Helicopter audio samples are sourced from https://github.com/viktorphoenix/fieldrecordings-ccby4. The License for the helicopter audio samples can be found in the Third-party folder.