Skip to main content
New Participant
January 17, 2024

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

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?

    This topic has been closed for replies.

    2 replies

    New Participant
    January 18, 2024
    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.

    SamSil187Author
    New Participant
    January 18, 2024

    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/#a53a9973b2e69ea3b289daa633c71d4e9

    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.