view(_:didRemove:for:)
Tells the delegate that the SpriteKit node corresponding to an AR anchor has been removed from the scene.
Declaration
optional func view(_ view: ARSKView, didRemove node: SKNode, for anchor: ARAnchor)Parameters
- view:
The Arskview object rendering the scene.
- node:
The removed SpriteKit node.
- anchor:
The AR anchor corresponding to the node.
Discussion
Depending on the session configuration, ARKit may automatically remove anchors from a session. The view calls this method once for each removed anchor.