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...
AnimationNodeStateMachineTransition¶
Inherits: Resource < Reference < Object
Tutoriales¶
Propiedades¶
|
||
|
||
|
||
|
||
|
||
|
Señales¶
advance_condition_changed ( )
Emitido cuando advance_condition es cambiada.
Enumeraciones¶
enum SwitchMode:
SWITCH_MODE_IMMEDIATE = 0 --- Intercambia a el proximo estado inmediatamente. El actual estado terminara y se mezclara en el comienzo del nuevo.
SWITCH_MODE_SYNC = 1 --- Intercambia a el proximo estado inmediatamente, pero buscara el nuevo estado a la reproduccion de la posicion del antiguo estado.
SWITCH_MODE_AT_END = 2 --- Espera a que termine el actual estado en reproduccion, entonces intercambia con el principio de la proxima animacion.
Descripciones de Propiedades¶
String advance_condition
Default |
|
Setter |
set_advance_condition(value) |
Getter |
get_advance_condition() |
Turn on auto advance when this condition is set. The provided name will become a boolean parameter on the AnimationTree that can be controlled from code (see #controlling-from-code in Usando AnimationTree). For example, if AnimationTree.tree_root is an AnimationNodeStateMachine and advance_condition is set to "idle"
:
$animation_tree["parameters/conditions/idle"] = is_on_floor and (linear_velocity.x == 0)
bool auto_advance
Default |
|
Setter |
set_auto_advance(value) |
Getter |
has_auto_advance() |
Enciende la transicion automaticamente cuando este estado es alcanzado. Esto funcion mejor con SWITCH_MODE_AT_END.
bool disabled
Default |
|
Setter |
set_disabled(value) |
Getter |
is_disabled() |
No utilices esta transicion durante AnimationNodeStateMachinePlayback.travel o auto_advance.
int priority
Default |
|
Setter |
set_priority(value) |
Getter |
get_priority() |
Transiciones de prioridad baja son preferidas cuando se viaja a traves de un arbol AnimationNodeStateMachinePlayback.travel o auto_advance.
SwitchMode switch_mode
Default |
|
Setter |
set_switch_mode(value) |
Getter |
get_switch_mode() |
El tipo de transicion.
float xfade_time
Default |
|
Setter |
set_xfade_time(value) |
Getter |
get_xfade_time() |
El tiempo de paso de este estado al siguiente.