Develop
Develop
Select your platform

Setup Multiplayer Testing with Link and XR Simulator in Unreal

Updated: Jan 7, 2024
Multiplayer functionality can be tested in Unreal using Link and the Meta XR Simulator. This testing method allows three separate users to test multiplayer functionality in your Unreal App. The testing methodology breaks down as follows:
  • Player 1 uses Link from the first Quest device
  • Player 2 uses Meta XR Simulator along with Meta Quest Controllers from the second Quest device
  • Player 3 uses Meta XR Simulator and controls their player via mouse and keyboard

Prerequisites

To use this form of multiplayer testing, ensure you have the following:
  • At least two Meta Quest headsets
  • A VR app set up for Unreal
  • Link set up for your headset and PC.
To test multiplayer for three users in your Unreal app, use the following process:
  1. Connect your two Quest devices to the same PC via USB. For the first headset, start Link.
  2. Disable Link for the second headset to use Meta XR Simulator and Meta Quest Controllers. Navigate to Settings > System in the second player’s headset. Select Link from the options list and ensure that the Turn on Link option is disabled.
  3. With Link disabled for the second player’s headset, you can use Meta XR Simulator with Meta Quest Controllers to control the second player.
  4. Select Edit > Editor Preferences and configure the following options:
    • Disable Run Under One Process to ensure all players are running as separate processes
    • Disable HMD For Primary Process Only to ensure all connected players can use a Quest device with switchable Link
    • Set Play Number of Clients to a number larger than 1
    • Change Play Net Mode per sample (Don’t use Standalone mode which doesn’t use any server for multiplayer apps)
    Unreal editor options for Meta XR Simulator
  5. Select Project Settings and specify the Meta XR Simulator’s installation path. Note: Do not activate Meta XR Simulator at this time.
    Unreal editor project settings
  6. With your editor settings configured, you can now begin multiplayer testing. To do so, select the three dots from the play menu bar, then select VR Preview.
    Unreal editor VR Preview menu option
  7. The system will display the Multiple PIE (Play In Editor) windows and the debug window.
    Unreal multiple PIE editors testing
  8. With Meta Quest Controllers set up for the second player, player 0 can receive input from the first Quest Device via Link. The second player can receive input via Meta Quest Controllers, and you can control the third player entirely via the Meta XR Simulator using mouse and keyboard inputs.
The following is a Sample video of three Unreal Engine instances to test multiplayer functionality:
In the sample video, the first player uses Link to work with the first Quest device, the second player uses Meta Quest Controllers to get inputs from the second Quest device and works with its own Meta XR Simulator, and the third player gets input from the mouse and keyboard in its own Meta XR Simulator instance.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon