I used the WebXR to develop AR feature for my model but received the error below when using the PLANE_DETECTION. Please help me
Error: Uncaught (in promise) Error: required feature not compatible
at e.enableFeature
My code:
const xr = await this._scene.createDefaultXRExperienceAsync( {
uiOptions: {
sessionMode: ‘immersive-ar’,
referenceSpaceType: “local-floor”
},
optionalFeatures: true,
} );
const featureManager = xr.baseExperience.featuresManager;
const xrPlanes = featureManager.enableFeature( WebXRFeatureName.PLANE_DETECTION, “latest”) as WebXRPlaneDetector;
I run some examples on the playground and get the same error: https://playground.babylonjs.com/#175132#1