<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/HasAnchoring",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation12HasAnchoringP"
  },
  "title" : "HasAnchoring"
}
-->

# HasAnchoring

An interface that enables anchoring of virtual content to a real-world
object in an AR scene.

```
@MainActor @preconcurrency protocol HasAnchoring : Entity
```

## Topics

### Getting the component

[`anchoring`](/documentation/RealityKit/HasAnchoring/anchoring)

The component that describes how the virtual content is anchored to the
real world.

### Identifying the AR anchor

[`anchorIdentifier`](/documentation/RealityKit/HasAnchoring/anchorIdentifier)

The identifier of the AR anchor with which the anchor entity is
associated, or `nil` if it isn’t currently anchored.

### Moving the anchor

[`reanchor(_:preservingWorldTransform:)`](/documentation/RealityKit/HasAnchoring/reanchor(_:preservingWorldTransform:))

Changes the entity’s anchoring, preserving either the world transform or
the local transform.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)