Creates an action that executes a block periodically over a specified duration.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 3.0+
The duration of the action, in seconds.
The block to run. The block takes the following parameters:
The node on which the action is running.
The amount of time that has passed since the action began executing.
A new action object.
When the action executes, SceneKit calls the block repeatedly until the action’s duration expires. For each call, SceneKit computes the elapsed time and passes it to the block.
This action is not reversible; the reverse action executes the same block.