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...
CallbackTweener
Eredita: Tweener < RefCounted < Object
Richiama il metodo specificato dopo un ritardo facoltativo.
Descrizione
CallbackTweener serve per chiamare un metodo in una sequenza di tweening. Vedi Tween.tween_callback() per maggiori informazioni sull'utilizzo.
Il tweener terminerà automaticamente se l'oggetto di destinazione del callback viene liberato.
Nota: Tween.tween_callback() è l'unico modo corretto per creare CallbackTweener. Qualsiasi CallbackTweener creato manualmente non funzionerà correttamente.
Metodi
Descrizioni dei metodi
CallbackTweener set_delay(delay: float) 🔗
Ritarda la chiamata del callback di un tempo specificato in secondi.
Esempio: Chiama Node.queue_free() dopo 2 secondi:
var tween = get_tree().create_tween()
tween.tween_callback(queue_free).set_delay(2)