Creates an action that plays an audio source.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The audio source to play.
true, the duration of this action is the same as the length of the audio playback. If
false, the action is considered to have completed immediately.
A new action object.
When the action executes, SceneKit plays the audio source on the target node—any positional audio effects are based on the node’s position. For more information about positional audio in SceneKit, see
This action is not reversible; the reverse of this action is the same action.