OVRBoundary error: "This functionality is not supported in your current version of Unity"
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.
