Skip to main content
The Meta Fork of Unreal Engine is a customized version of Unreal Engine, created by Meta to support advanced features for the Meta Presence Platform. These features include Passthrough, Scene API, and Spatial Anchors, enabling enhanced VR interactions for Meta Quest devices. This section details how to set up and utilize the Meta Fork, its configurations, and why it is essential for certain features.

Overview of Meta Fork

What is the Meta Fork?

The Meta Fork is a modified Unreal Engine build that integrates optimizations and features specific to Meta Quest devices. It allows developers to:
  • Access the Meta Presence Platform.
  • Use advanced features like PassthroughScene API, and Spatial Anchors.
  • Optimize performance for Meta Quest and future Meta VR hardware.
1(2)

When to Use the Meta Fork

  • Presence Platform Features: If your project requires Passthrough, Scene API, or Spatial Anchors.
  • Meta-Specific Optimization: If you’re targeting Meta Quest devices for optimal performance.
  • Unreal Engine Version: If you are using Unreal 5.4+.

Available Configurations

SetupDescriptionUse Case
Stock Unreal EngineOfficial Unreal Engine from Epic Games Launcher or source builds.Standard VR projects.
Stock Engine with Meta XR PluginAdds basic Meta XR functionality without Meta-specific optimizations.Limited support for Meta features.
Meta ForkCustom Unreal Engine version enabling Presence Platform features.Required for advanced Meta capabilities.

Why Use the Meta Fork?

The Meta Fork is essential for accessing the Meta Presence Platform features. These features enhance your VR applications by enabling the following:

Key Features

  1. Passthrough:
    • Leverages Meta Quest’s cameras to blend real-world visuals with the virtual environment.
    • Perfect for augmented reality (AR) or mixed reality (MR) applications.
  2. Scene API:
    • Allows for detailed spatial understanding of the physical environment.
    • Enables object placement and interactions based on real-world geometry.
  3. Spatial Anchors:
    • Provides persistent world anchors for objects in the VR/AR space.
    • Ensures objects maintain their position across sessions.

How to Set Up the Meta Fork

The Meta fork of Epic’s Unreal Engine will give you the most up to date integration of Oculus features. However, you must build the editor from its source. To use the Meta Fork, follow these steps:

Step 1: Download the Meta Fork

  1. 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 repositor
  2. Download the Meta Fork:

Step 2: Build the Meta Fork from Source

Once you have downloaded the Meta Fork source code, you need to build it:

Install Prerequisites

  • Git: Required for source code version control.
  • Visual Studio 2022 with the following workloads:
    • Desktop Development with C++
    • Game Development with C++
  • DirectX End-User Runtime: Install the latest DirectX runtime.

Clone the Repository

  1. Open a terminal or Git client.
  2. Clone the repository using the command provided in the Meta Developer Portal: git clone https://github.com/Meta/unreal-engine-fork.git

Run Setup Script

  1. Navigate to the cloned repository directory.
  2. Run the Setup.bat to download dependencies and set up the required files for the engine.
2(2)

Generate Project Files

Run the GenerateProjectFiles.bat to generate Visual Studio project files. 3(1) Build the Engine
  1. Open the generated .sln file in Visual Studio.
4(1)
  1. Build the engine in Development Editor mode:
  • Solution ConfigurationDevelopment Editor
  • Solution PlatformWin64
5(1)
  1. Wait for the build process to complete. This may take some time.
Note : Detailed guide to build Unreal Engine from Source

Step 3: Launch the Meta Fork Editor

Once the build is complete, launch the editor:
  1. Locate the executable: [MetaForkPath]/Engine/Binaries/Win64/UE5Editor.exe
  2. Double-click to open the Meta Fork Editor.

Integrating the LIV SDK with Meta Fork

After building and launching the Meta Fork, integrate the LIV SDK using the steps in the Installing and Configuring the LIV SDK section.

Testing LIV with Meta Presence Platform Features

Testing Passthrough

  1. Enable Passthrough in the project:
    • Open Project Settings.
    • Navigate to Plugins > Meta XR.
    • Enable Passthrough and configure its settings.
6(1)
  1. Test in VR Preview mode to ensure Passthrough functionality is working.

Testing Scene API

  1. Enable the Scene API:
    • Go to Project Settings > Meta XR.
    • Enable Scene Support and configure the necessary settings. 7(1)
  2. Use sample code from Meta’s documentation to validate Scene API functionality.

Testing Spatial Anchors

  1. Enable Spatial Anchors:
    • Open Project Settings.
    • Navigate to Plugins > Meta XR.
    • Enable Anchors Support. 8(1)
  2. Test by saving and loading anchors across sessions.

Frequently Asked Questions

Q: Do I need the Meta Fork if I’m not using Presence Platform features? A: No, you can use the stock Unreal Engine with the LIV SDK for standard MR features. The Meta Fork is required only for Meta-specific features like Passthrough, Scene API, and Spatial Anchors. Q: Can I install the Meta Fork alongside the stock Unreal Engine? A: Yes, the Meta Fork can coexist with the stock Unreal Engine. You can maintain separate installations for different projects. Q: How do I ensure compatibility with the LIV SDK? A: Use Unreal Engine 5.4+ (Meta Fork) and configure the project settings as described in the Installing and Configuring the LIV SDK