Change the Oculus Rift Guardian System Color

Prerequisite Topics

This page assumes you have prior knowledge of the following topics. Please read them before proceeding.

The Oculus Guardian system is used to display the boundaries of the VR interaction area. As a tracked device approaches the boundaries, the Oculus Runtime automatically provides visual cues notifying the user of this. In the following How To we will take a look at changing the color, the Oculus Guardian system uses to display the VR interaction area.

For the Guardian system to work, you will need to make sure you have set it up using the Oculus App. For more information on how to do this, please see the official Oculus Guardian System set up pages.

It is not possible nor advisable to disable the Guardian system from inside UE4. You can, however, adjust how UE4 will react to the user getting close to the boundaries.


  1. Create a new Variable called Oculus Rift Boundary Color and set its type to Linear Color and its color to Red.
  2. In the Event Graph add a Event Begin Play and Set Tracking Origin node. Make sure that the Set Tracking Origin node has had its Origin set to Floor Level and then connect the Event Begin Play to the Set Tracking Origin node.
  3. Right - click on the Event Graph and from the menu search for Set Outer Boundary Color, clicking on it to add it to the graph.
  4. Drag both the Oculus Rift Boundary Color variable and the Oculus Rift Boundary component into the Event Graph. Connect the Oculus Rift Boundary Color variable to the In Boundary Color on the Set Boundary Color node and then connect the Oculus Rift Boundary to the Target input.
    Click for full image.
  5. Connect the output of the Set Tracking Origin node to the input of the Set Outer Boundary Color node. When completed your Event Graph should look like the following image.
    Click for full image.

End Result

Now, when you run the Level, putting on the Oculus Rift when the boundary is displayed, it will be the color you set in the Oculus Rift Boundary Color variable.

UE4 Project Downloads

Below you will find a link to where you can download the UE4 project that was used to create this example.

Oculus Rift Guardian System Example Project