A Boolean property that indicates whether the node’s audio is altered based on the position of the node.
SDKs
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
Framework
- Sprite
Kit
Declaration
var isPositional: Bool { get set }
Discussion
If true
, the audio mixer considers the position and velocity of the SKAudio
relative to scene's current listener
node. The mixer applies distance attenuation, doppler shift, and pan effects to the sound. If false
, then the sound is played normally. The default value is true
.