node(for:)
Returns the SceneKit node associated with the specified AR anchor, if any.
Declaration
func node(for anchor: ARAnchor) -> SCNNode?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.