view(_:willUpdate:for:)
Tells the delegate that a SpriteKit node’s properties will be updated to match the current state of its corresponding anchor.
Declaration
optional func view(_ view: ARSKView, willUpdate node: SKNode, for anchor: ARAnchor)Parameters
- view:
The Arskview object rendering the scene.
- node:
The updated SpriteKit node.
- anchor:
The AR anchor corresponding to the node.
Discussion
Depending on the session configuration, ARKit may automatically update anchors in a session. The view calls this method once for each updated anchor.