This sample demonstrates use of the MetaXR Interaction SDK plugin.
You must have Unreal Engine, the Meta XR plugin, and the Meta XR Interaction SDK plugin installed for this sample project to load correctly. As this sample is a C++ project, you will also need to install and configure Visual Studio. See setup instructions below.
Click the "Code" button at the top of this page and select "Download ZIP".
Unzip the downloaded file to proceed.
First, ensure you have Git LFS installed by running this command:
git lfs installThen, clone the repo using this command:
git clone https://github.com/oculus-samples/Unreal-InteractionSDK-SampleDownload the Meta XR plugin and unzip the downloaded file into the Plugins directory of the Sample Project.
Download the Meta XR Interaction SDK plugin and unzip the downloaded file into the Plugins directory of the Sample Project.
The easiest way to get started is to use the prebuilt Unreal Engine from the Epic Games Launcher.
- Install the Epic Games Launcher
- From the launcher, install the latest version Unreal Engine 5
The Meta fork of Epic’s Unreal Engine will give you the most up to date integration of Oculus features and engine optimizations. However, it requires a more complicated and time-consuming setup flow, outlined below. For more information, see the Meta Unreal Engine Fork Documentation.
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 Meta fork of Epic’s Unreal Engine source.
- Download the source code from the Meta fork of Epic’s Unreal Engine on GitHub.
- Follow Epic’s instructions on Building Unreal Engine from Source to complete the process.
Note that this build may take a while to complete.
Refer to Epic's Visual Studio Setup Documentation for:
- Guidance on which version of Visual Studio to download
- Instructions on how to set up Visual Studio for first-time users
Download Visual Studio and follow Epic's instructions, above, for setting it up to work with Unreal Engine.
If you already have Visual Studio installed:
- Launch the Visual Studio Installer and click Modify for the Visual Studio version you want to use.
- Under the Workloads tab, make sure "Game development with C++" is checked - if it isn't, check it and click Modify.
- Right click on
MetaIsdkSample.uproject, select 'Generate Visual Studio project files' - Open the
MetaIsdkSample.slnfile in Visual studio - Within Visual Studio, select 'Start without debugging' from the 'Debug' menu.
To find out more about plugin features, see the Meta XR Interaction SDK documentation.
This message pops up when attempting to launch the sample project through the Epic Games launcher or via the sample project's .uproject file.
If you have Visual Studio correctly installed and configured, you can click "Yes" to build the sample project and plugins, and proceed normally.
If you do not have Visual Studio correctly installed and configured, you may get the following message when rebuilding:
If you encounter this message, revisit the Visual Studio installation steps, above.
The Meta License applies to the SDK and supporting material. The MIT License applies to only certain, clearly marked documents. If an individual file does not indicate which license it is subject to, then the Meta License applies.


