Instance Method

nodeForAnchor:

Returns the SpriteKit node associated with the specified AR anchor, if any.

Declaration

- (SKNode *)nodeForAnchor:(ARAnchor *)anchor;

Parameters

anchor

An anchor in the view's AR session.

Return Value

The node whose position in the AR scene the anchor tracks, or nil if the anchor has no associated node or is not in the view's AR session.

See Also

Mapping Content to Real-World Positions

- anchorForNode:

Returns the AR anchor associated with the specified SpriteKit node, if any.