Up to date
This page is up to date for Blazium 0.4.90 (4.3)
.
If you still find outdated information, please open an issue.
AudioStreamPlaybackInteractive๏
Inherits: AudioStreamPlayback < RefCounted < Object
Playback component of AudioStreamInteractive.
Description๏
Playback component of AudioStreamInteractive. Contains functions to change the currently played clip.
Methods๏
get_current_clip_index() const |
|
void |
switch_to_clip(clip_index: int) |
void |
switch_to_clip_by_name(clip_name: StringName) |
Method Descriptions๏
int get_current_clip_index() const ๐
Return the index of the currently playing clip. You can use this to get the name of the currently playing clip with AudioStreamInteractive.get_clip_name.
Example: Get the currently playing clip name from inside an AudioStreamPlayer node.
var playing_clip_name = stream.get_clip_name(get_stream_playback().get_current_clip_index())
void switch_to_clip(clip_index: int) ๐
Switch to a clip (by index).
void switch_to_clip_by_name(clip_name: StringName) ๐
Switch to a clip (by name).