One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

AnchoringComponent.TrackingMode

struct · iOS 18.0+ · SDK 27.1

struct TrackingMode

Options for how an entity tracks its target anchor.

Members (3)

get · iOS 18.0+

continuous

TypeScript
static get continuous(): AnchoringComponent_TrackingMode
Swift declaration
static let continuous: AnchoringComponent.TrackingMode

Continuously anchors the entity to its target based on the target's realtime location and hides the entity when the target is no longer in frame. `continuous` means the `Entity` will track the target anchor continuously. The `Entity` moves with the anchor and is unanchored if the target anchor disappears or no longer meets the target requirement.

get · iOS 18.0+

once

TypeScript
static get once(): AnchoringComponent_TrackingMode
Swift declaration
static let once: AnchoringComponent.TrackingMode

Anchors the entity to the target on the first frame the target is found. `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.

get · iOS 18.0+

predicted

TypeScript
static get predicted(): AnchoringComponent_TrackingMode
Swift declaration
static let predicted: AnchoringComponent.TrackingMode

Continuously anchors the entity to its target based on the target's predicted location and hides the entity when the target is no longer in frame. `predicted` means the `Entity` will be updated whenever the corresponding anchor is updated but its transformation will be `ARKit` prediction. If the target does not support prediction, `predicted` behaves the same as `continuous`.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →