What's the proper way to manually remove a XR Anchor?

Hey there!
Thank you for replying!
I tried testing it within the Playground Demo that’s in the WebXR Docs (Babylon.js Playground) and there is no auto complete to access the ‘anchors’ object from the Anchor System.
Just tried duplicating that demo to a new one and it doesn’t work.
I get the same ‘illegal invocation’ error in the console.

Here is the test PLayground:
https://playground.babylonjs.com/#HB2WWZ#1

Everything is a copy-paste from the original Docs Demo, just added the condition to trigger the remove() function on the input PointerDown.
The idea was to remove the existing anchor on the second tap/click.

1 Like