Tells the delegate to perform any updates that need to occur after actions and animations are evaluated.
SDKs
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Scene
Kit
Declaration
- (void)renderer:(id<SCNScene Renderer>)renderer didApplyAnimationsAtTime:(NSTime Interval)time;
Parameters
aRenderer
The SceneKit object responsible for rendering the scene.
time
The current system time, in seconds. Use this parameter for any time-based elements of your game logic.
Discussion
SceneKit calls this method exactly once per frame, so long as the SCNView
object (or other SCNScene
object) displaying the scene is not paused.
Implement this method to add game logic to the rendering loop. Any changes you make to the scene graph during this method are immediately reflected in the displayed scene. That is, SceneKit immediately updates the hierarchy of presentation nodes it uses to render the scene (instead of using the SCNTransaction
class to “batch” your changes).