An anchor that tethers virtual content to a real-world object in an AR session.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- Xcode 11.0+
You use an
Anchor instance as the root of an entity hierarchy, and add it to the
anchors collection for a
Scene instance. This enables ARKit to place the anchor entity, along with all of its hierarchical descendants, into the real world.
While you have only one anchor at the root of a given hierarchy of entities, you can have multiple anchors in the scene, each with its own hierarchy of entities. For example, you could have one anchor that places a toy car on a horizontal surface, like a table, and another that ties informative text bubbles to an image, all in the same scene.