Skip to content
InterfaceAudio System@public

FlxSoundAttachmentOptions

Configuration for link.

ts
export interface FlxSoundAttachmentOptions

Properties

PropertyModifiersTypeDescription
cameras-readonly FlxCameraLike[]Override the source object's cameras for visibility checks.
listener-FlxObjectObject used as the center of hearing, normally the player.
margin-numberExtra logical pixels beyond the viewport before suspending. Defaults to 0.
offscreen-FlxSoundOffscreenBehaviorPause in place or stop/restart after leaving the viewport. Defaults to pause.
pan-booleanApply player-relative left/right stereo panning. Defaults to true.
radius-numberMaximum audible distance in logical world units.
viewport-'ignore' | 'visible'Gate playback by camera visibility. Defaults to visible.

Released under the MIT License.