cancel
Showing results for 
Search instead for 
Did you mean: 

OVRBoundary error: "This functionality is not supported in your current version of Unity"

techmage
Member

New to meta quest development. Downloaded the Oculus integration package and attempted to access the boundary geometry via OVRBoundary.GetGeometry(), but it keeps throwing the error "This functionality is not supported in your current version of Unity".

I've tracked the problem to the OVRPLUGIN_UNSUPPORTED_PLATFORM preprocessor directive, which is apparently being set at some point by the unity engine, but I don't know how or by what. I'm building and deploying directly to a meta quest 2 with OS SQ3A.220605.009.A1, runtime version 53.0.0.137.132.472990674, version 53.0.0.137.132.472990659. The quest device gives me no options to update the firmware.

Reinstalling the Oculus Integration package made no difference. Upgrading to Unity version 2022.2.21f1 made no difference. Oculus is selected as the XR Plugin in project settings. Meta Quest Support and Meta XR Features are both selected in OpenXR. Working in Windows 10 Pro. Oculus Integration version 53.1.

The specific script in question is:

 

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR;
using UnityEngine.XR.Management;
using Unity.XR.Oculus;
using Unity.XR;

public class PlaceSpecialItems : MonoBehaviour
{
    //private Boundary boundary = new Boundary();
    public Transform pedestal;
    public Transform sphere;
    public bool fence;
    private OVRBoundary boundary;

    // Start is called before the first frame update
    void Start()
    {
        
        boundary = new OVRBoundary();
        Vector3[] playAreaGeometry = boundary.GetGeometry(OVRBoundary.BoundaryType.PlayArea);

        Debug.Log("test");
        Debug.Log(playAreaGeometry);
        Debug.Log(playAreaGeometry.Length);
    }

    // Update is called once per frame
    void Update()
    {
    }
}

 

Running out of ideas. Would be grateful to get some advice.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

MartinFnitraM
Protege

It was deprecated. We are all struggling with the same. Only way to bring it back is selecting "Legacy" 

From @cecarlsen on the Unity forums. This solves the problem!!

For those who want exact Guardian bounds drawn by the user on Meta Quest:

At the time of writing (Unity 2021.3.1.13f1 and Oculus Integration 49.0), you need to use OVRManager.boundary.GetGeometry( OVRBoundary.BoundaryType.OuterBoundary ). And for that to work you need to switch to "Legacy LibOVR+VRAPI" in the top menu: Oculus -> Tools -> OVR Utilities Plugin.

View solution in original post

1 REPLY 1

MartinFnitraM
Protege

It was deprecated. We are all struggling with the same. Only way to bring it back is selecting "Legacy" 

From @cecarlsen on the Unity forums. This solves the problem!!

For those who want exact Guardian bounds drawn by the user on Meta Quest:

At the time of writing (Unity 2021.3.1.13f1 and Oculus Integration 49.0), you need to use OVRManager.boundary.GetGeometry( OVRBoundary.BoundaryType.OuterBoundary ). And for that to work you need to switch to "Legacy LibOVR+VRAPI" in the top menu: Oculus -> Tools -> OVR Utilities Plugin.