AudioStreamPlaybackInteractive
Hereda: AudioStreamPlayback < RefCounted < Object
Componente de reproducción de AudioStreamInteractive.
Descripción
Componente de reproducción de AudioStreamInteractive. Contiene funciones para cambiar el clip que se está reproduciendo actualmente.
Métodos
get_current_clip_index() const |
|
void |
switch_to_clip(clip_index: int) |
void |
switch_to_clip_by_name(clip_name: StringName) |
Descripciones de Métodos
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) 🔗
Cambiar a un clip (por índice).
void switch_to_clip_by_name(clip_name: StringName) 🔗
Cambiar a un clip (por nombre).