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
Hereda: Tweener < RefCounted < Object
Llama al método especificado después de un retraso opcional.
Descripción
CallbackTweener se usa para llamar a un método en una secuencia de interpolación. Véase Tween.tween_callback() para obtener más información sobre su uso.
El interpolador finalizará automáticamente si se libera el objeto de destino de la llamada.
Nota: Tween.tween_callback() es la única forma correcta de crear CallbackTweener. Cualquier CallbackTweener creado manualmente no funcionará correctamente.
Métodos
Descripciones de Métodos
CallbackTweener set_delay(delay: float) 🔗
Hace que la callback se retrase el tiempo dado en segundos.
Ejemplo: Llama a Node.queue_free() después de 2 segundos:
var tween = get_tree().create_tween()
tween.tween_callback(queue_free).set_delay(2)