cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to get/set the floor height data directly to the device?

SamSil187
Honored Guest

I am working on a unity VR application. Before starting the VR application, it is standard to set the player floor height and boundary within meta oculus guardian system. Once that is set you usually run the app. Usually once the app is running, if you want to change the guardian data (floorheight/boundary) you have to open the oculus menu to enable it. However, I want to be able to read/write to the floor height data from a unity3d script. Is it possible to do this?

2 REPLIES 2

thisjuju
Explorer
using UnityEngine;
using static Unity.XR.Oculus.Boundary;

    void Awake()
    {
        GetBoundaryDimensions(Boundary.BoundaryType.PlayArea, out Vector3 dimensions);
    }

You can access boundary data from this line, but to write boundary data, I am not very sure.

Thank you for the feedback thisjsujsu. 

Seems that most of the capabilities are found here in these links.
https://developer.oculus.com/documentation/unity/unity-ovrboundary/
https://developer.oculus.com/reference/unity/v60/class_o_v_r_boundary/#a53a9973b2e69ea3b289daa633c71...

However there is no explicit detailed way to edit the boundary or floor height from the API scripting.

Would love if someone could confirm this.