How to Use Oculus Quest 2 with Unreal Engine 5?

The Unreal Engine basically a creation tool that was being used in some big industry like game development, architectural and automotive visualization, broadcast and live event production, and other real-time applications.

Unreal Engine 5 is in the middle of you and your future game. The Oculus is perfectly compatible with unreal engine and if you use the Link Cable, your Oculus Quest 2 will work similar to an Oculus Rift.

It is now available for free to download and will let you start your VR gaming development in an advanced way.

But right now as we all know VR gaming industry is booming and creating games with for VR headsets has become very popular among game developers.

If you’re switching from Unreal Engine 4, follow this important guide made by Epic for developers.

Before accessing the Oculus UE5 branch, you must register your GitHub ID with Epic – otherwise, you will receive a 404 error.

How To Use Oculus Quest 2 VR In Unreal Engine 5

For an example we are going to be using the quest 2 and the link cable. With that being said there is other VR headsets that you can use and all of the skills learned inside of unreal engine 5 are going to be exactly the same regardless of the headset.

Step 1: Download Android Studio

Unreal Engine 5 currently works with android studio 4.0, not the latest build.

Visit developer.android.com and go over to download options>download archives and agree to any terms and conditions they have.

Look for the android studio 4.0 currently dated May 28 2020.

Go ahead and click on download for whatever device you’re it is that you’re using. Once it’s finished downloading install and leave all of the settings at default.

Step 2: Download the Oculus app

Next step is downloading the Oculus App.

The Oculus app is compatible with an air link
and the link cable.

Download and install the App as usual. Open the app youll be asked to select a connection method.

Choose the link cable and press continue. It will ask to connect your headset. If it is connected you should be able to just press continue and then press continue again providing everything is set up because it’s all plugged in and everything is working and good to go.

Step 3: Download Visual Studio

In this step, download visual studio community 2022 on your computer.

Now you need to select all of the correct components
like visual studio and community game development with C++.

Go ahead and press install. it is about seven gigabytes so it is going to take a little while. Press install
give this about five-ten minutes.

Step 4: Create an Oculus Developer Account

Create a Oculus Developer account and enable developer mode on Oculus Quest 2.

You can use Facebook, Instagram and Gmail account to sign up.

Go to our oculus app go down to devices then developer mode and switch this on. From here your Oculus Quest 2 is ready to dive into Unreal Engine 5.

Step 5: Use VR preview in Unreal Engine 5

let’s go ahead and get the Unreal Engine 5 running. So first things first to access your VR preview.

You can access this by going to the little drop down arrows and choosing the VR preview. Now it will put you into the Game.

just pick up the headset turn it on and then from there you’ll be able to move around and use the right stick to move around.

Point and aim to choose where you can go and then of course the headset’s tracking and if you want you can just use the grip button to start gripping and picking up objects

If you can start picking up objects, youre good to go an the VR preview feature is working.

How to Set up Oculus Quest VR in a custom scene inside Unreal Engine?

Now that you have your VR working inside of unreal engine let’s go ahead and show you how you can get your VR setup in a fresh scene and how you can create custom objects that can be picked up.

  • Go ahead and create a brand new level.
  • Navigate to VR Template folder.
  • Drag and put an object on VR preview tab.
  • Now from the right below corner, go to auto possess player and set this to player 0.
  • From the left bottom option, click on + icon>volume>nav mesh bound volume.
  • Scale this up so it covers the entire playable area.
  • Place any object inside the circle.
  • Done, go to play mode and test it out.

How to create custom object in Unreal Engine and pick them up by using Oculus Quest 2?

Within unreal engine, Open up our grabbable blueprint class. This comes as part of the starter content with your VR project. You can find this underneath Content>VR Template>Blueprints.

  • Click on VR Content>Blueprint.
  • Rename the object as Grabbable Chair and double click on it.
  • From the left static mesh option, select any static cubes.
  • Drag it to the tab an click on save.
  • Now click on Play and youre done.
  • You can now add any object and pick it up with your controller.

What requirements do you need to run Unreal Engine on your PC?

You will need a very high end gaming PC to run and render all the object inside Unreal Engine 5. Check out the requirements:

Minimum Requirements For Unreal Engine 5

  • Operating System: Windows 10
  • Processor: Intel 7th generation or equivalent
  • Memory: 16 GB RAM
  • GPU: GTX 1080 (or AMD equivalent)
  • DirectX: Version 12
  • Storage: 25 GB of available space
  • Additional notes: 8 GB of VRAM recommended

Recommended Requirements For Unreal Engine 5

  • Operating System: Windows 11
  • Processor: 10th generation Intel or equivalent
  • Memory: 32 GB RAM
  • GPU: GTX 3000 series (or AMD equivalent)
  • DirectX: Version 12
  • Storage: 25 GB of available space
  • Additional notes: 8 GB of VRAM recommended

What VR headset works with Unreal engine?

Any VR headset can be used to work with Unreal Engine.