Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
AudioStreamPlaybackInteractive
Hérite de : AudioStreamPlayback < RefCounted < Object
Composant de lecture d'AudioStreamInteractive.
Description
Composant de lecture d'AudioStreamInteractive. Contient des fonctions pour changer le clip actuellement joué.
Méthodes
get_current_clip_index() const |
|
void |
switch_to_clip(clip_index: int) |
void |
switch_to_clip_by_name(clip_name: StringName) |
Descriptions des méthodes
int get_current_clip_index() const 🔗
Renvoie l'index du clip en cours de lecture. Vous pouvez utiliser ceci pour obtenir le nom du clip en cours de lecture avec AudioStreamInteractive.get_clip_name().
Exemple : Obtenez le nom de clip en cours de lecture à partir d'un nœud AudioStreamPlayer.
var nom_clip_lecture = flux.get_clip_name(get_stream_playback().get_current_clip_index())
void switch_to_clip(clip_index: int) 🔗
Change vers un clip (par index).
void switch_to_clip_by_name(clip_name: StringName) 🔗
Change vers un clip (par nom).