set_animator


Description:

[ Version ( deprecated = true , deprecated_since = "1.12" , since = "1.4" ) ]
public void set_animator (string source_state_name, string target_state_name, Animator? animator)

Warning: set_animator is deprecated since 1.12.

Specifies a Animator to be used when transitioning between the two named states.

Note:

The animator allows specifying a transition between the state that is more elaborate than the basic transitions allowed by the tweening of properties defined in the State keys.

If animator is null it will unset an existing animator.

State will take a reference on the passed animator, if any

Parameters:

this

a State instance.

source_state_name

the name of a source state

target_state_name

the name of a target state

animator

a Animator instance, or null to unset an existing Animator