The audio players currently attached to the node.
SDKs
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Scene
Kit
Declaration
@property(nonatomic, readonly) NSArray<SCNAudio Player *> *audioPlayers;
Discussion
Positional audio effects from a player attached to a node are based on that node’s position relative to the audio
position in the scene.
After an audio player completes playback, SceneKit automatically removes it from the node. Therefore, this array always contains audio players that are currently playing back audio.