Develop

Get Guardian Dimensions

Updated: Apr 15, 2026
This Blueprint returns the dimensions of a Guardian boundary or play area as an FVector.

Overview

This Blueprint retrieves an FVector consisting of three values representing the width, height, and depth of either:
  • The outer boundary for the Guardian area.
  • The play area (a rectangle within the outer boundary).
This Blueprint is only meaningful when positional tracking is available, such as when the headset provides 6DOF (six degrees of freedom) support. It works on both Meta Quest standalone and PC-VR configurations.
The C++ equivalent of this Blueprint is UOculusXRFunctionLibrary::GetGuardianDimensions, declared in OculusXRFunctionLibrary.h under the Blueprint category OculusLibrary|Guardian.

Blueprint

Get Guardian Dimensions Blueprint

Arguments

  • Boundary Type: An EOculusXRBoundaryType enum value representing the type of boundary dimensions to retrieve. You may set this value to:
    • EOculusXRBoundaryType::Boundary_Outer (“Outer Boundary”): The exact bounds of the Guardian area.
    • EOculusXRBoundaryType::Boundary_PlayArea (“Play Area”): A rectangle within the outer boundary.

Output

Each option returns an FVector representing the dimensions (width, height, depth) of an axis-aligned bounding box, expressed in Unreal Engine units.
  • If Play Area is selected: The bounding box encloses the play area, a rectangle within the outer boundary.
  • If Outer Boundary is selected: The bounding box encloses the outer boundary.
Note: On the OpenXR backend, the Boundary Type parameter is not used. The function always queries the stage reference space bounds regardless of which enum value is passed.