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...
MethodTweener
Eredita: Tweener < RefCounted < Object
Interpola un valore astratto e lo fornisce a un metodo richiamato nel tempo.
Descrizione
MethodTweener è simile a una combinazione di CallbackTweener e PropertyTweener. Richiama un metodo fornendo un valore interpolato come parametro. Vedi Tween.tween_method() per ulteriori informazioni sull'utilizzo.
Il tweener terminerà automaticamente se l'oggetto di destinazione del callback viene liberato.
Nota: Tween.tween_method() è l'unico modo corretto per creare MethodTweener. Qualsiasi MethodTweener creato manualmente non funzionerà correttamente.
Metodi
set_trans(trans: TransitionType) |
Descrizioni dei metodi
MethodTweener set_delay(delay: float) 🔗
Imposta il tempo in secondi dopo il quale MethodTweener inizierà l'interpolazione. Per impostazione predefinita, non c'è alcun ritardo.
MethodTweener set_ease(ease: EaseType) 🔗
Imposta il tipo di allentamento utilizzato, da EaseType. Se non impostato, viene utilizzato l'allentamento predefinito dal Tween che contiene questo Tweener.
MethodTweener set_trans(trans: TransitionType) 🔗
Imposta il tipo di transizione utilizzata, da TransitionType. Se non impostata, viene utilizzata la transizione predefinita dal Tween che contiene questo Tweener.