- iOS 8.0+
- macOS 10.10+
- tvOS 9.0+
- watchOS 3.0+
The duration of the action, in seconds.
A new action object.
SCNJava header file for details.
When the action executes, SceneKit runs the script repeatedly until the action’s duration expires. Each time SceneKit runs the script, it computes the elapsed time since the action began executing (as a fraction of the action’s duration between
1) and makes it available to the script as a variable named
elapsed. The script can also reference the
SCNNode object running the action as a variable named
This action is not reversible; the reverse action executes the same script.