<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/AnchoringComponent/TrackingMode-swift.struct/once",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation18AnchoringComponentV12TrackingModeV4onceAEvpZ"
  },
  "title" : "once"
}
-->

# once

Anchors the entity to the target on the first frame the target is found.

```
static let once: AnchoringComponent.TrackingMode
```

## Discussion

`once` means the `Entity` transform is evaluated only once when the target anchor presents and the `Entity` is anchored.

If the target anchor moves or disappears later, the `Entity` stays in place.

---

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)