Instance Method

updateWithDeltaTime:

Tells all component instances managed by the system to perform their custom periodic actions.

Declaration

- (void)updateWithDeltaTime:(NSTimeInterval)seconds;

Parameters

seconds

The time step to use for any time-dependent actions to be performed by components (typically, the elapsed time since the previous call to this method).

Discussion

Typically, you call this method in response to a per-frame game loop method such as update: (SpriteKit) or renderer:updateAtTime: (SceneKit). GameplayKit then forwards to the updateWithDeltaTime: method of all GKComponent subclass objects managed by the component system, allowing you to execute per-frame logic for each component instance in a deterministic order.