v147 · Surface Anchor Manager

Surface Anchor Manager

In an AR session with plane detection, you attach virtual objects to detected planes by creating XRAnchor instances — the anchor tracks the plane's pose across frames. Click a detected surface in the top-down view to place an anchored object and watch the anchor registry update.

WebXR plane detection requires AR hardware and an active XR session. This demo simulates a top-down view of a room with detected planes and shows how the surface anchoring workflow operates.
Anchor Manager

Click a detected surface to place an anchored object.

Active anchors (0)
Click a coloured plane to place object

see also

implementation reference

Need the exact API surface, compatibility boundaries, errors, lifecycle, and source links? Read the matching gendn reference ↗