Xb Anchors

Pin content to a real place with WebXR spatial anchors, and bring it back in a later session. Use when virtual content must stay put as the headset refines its map of the room, or when an app should remember where things were left. Covers `enableAnchors()`, `enableAnchorPersistence()`, creating and restoring anchors, the `capability` states, and the desktop fallback that lets anchor code be developed without a headset. Pair with xb-world for detecting what to anchor to.

Google 4be39e5 7.7 KB Updated 14.4k repo stars

File contents

google/xrblocks/tree/main/skills/xb-anchors commit 4be39e5b19

Frequently asked questions

npx skillmds@latest add google/xb-anchors