set_state
Description:
[ Version ( deprecated = true , deprecated_since = "1.12" , since = "1.4" ) ]
public unowned Timeline set_state (string target_state_name)
public unowned Timeline set_state (string target_state_name)
Warning: set_state is deprecated since 1.12.
Change the current state of State to target_state_name
.
Note:
Use KeyframeTransition and TransitionGroup instead
The state will animate during its transition, see warp_to_state for animation-free state switching.
Setting a null
state will stop the current animation and unset the current state, but keys will be left intact.
Parameters:
this |
a State |
target_state_name |
the state to transition to |
Returns:
the Timeline that drives the state transition. The returned timeline is owned by the State and it should not be unreferenced |