Forum Discussion
SamSil187
2 years agoHonored Guest
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?
2 Replies
Replies have been turned off for this discussion
- thisjujuExplorer
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.
- SamSil187Honored Guest
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.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 10 months ago
- 3 years ago