ASCueAudio
Inherits:
ASCueCue specialized for playing audio.
Description
[ASCueAudio] is a specialized cue that automatically plays audio when triggered. It works with [AudioStreamPlayer], [AudioStreamPlayer2D], and [AudioStreamPlayer3D] nodes provided to the [ASComponent].
Create AudioStream resources in your project (.wav, .ogg, .mp3), then create a .tres resource of this type and assign the [member audio_stream] property. Add it to your [ASAbility]’s [member ASAbility.cues] list.
The system automatically tries AudioStreamPlayer first, then AudioStreamPlayer2D, then AudioStreamPlayer3D, unless a [member ASCue.node_name] is specified to target a specific node.
Properties
| Type | Name | Default |
|---|---|---|
AudioStream | audio_stream | |
AudioStream resource to play (.wav, .ogg, .mp3). Create AudioStream resources in your project and assign them here. Leave empty to skip. | ||