Instance Method


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


func node(for anchor: ARAnchor) -> SKNode?



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

func anchor(for: SKNode) -> ARAnchor?

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