Contents

identifier

A unique identifier for the anchor.

Declaration

var identifier: UUID { get }

Discussion

Whether an anchor is created manually (with the init(transform:) initializer) or automatically by ARKit (and provided to you through ARSessionDelegate, ARSCNViewDelegate, or ARSKViewDelegate methods), each anchor automatically receives a unique identifier value.

You can use this value to determine which anchors accompanying a specific ARFrame capture correspond to anchors in frames captured previously.

See Also

Tracking Anchors