Game Development Reference
In-Depth Information
2.
Next, right-click on the
Start
state, select
Make Transition
, and then click on
the new
LoadingAnimationClip
state (automatically added when we created
the new clip previously) to create an animation transition between the two
states, as shown in this screenshot:
Animator controller with new LoadingAnimationClip and a transition created from Start to the new state
3.
Select the new transition (the arrow) from
Start
to
LoadingAnimation
and in the inspector under the
Conditions
section, click on the drop-down,
and select our new
Loading
property. Check whether the value is set to
true
(which should be the default). This simply means that when the
Loading
property is set to
true
, the animation should move (one way) to
the connected state.
Setting the conditon for the Start to LoadingAnimationClip state transition
4.
Finally repeat steps 14 and 15, this time creating the transition between the
LoadingAnimation
state to the
Start
state with the
Loading
condition set
to
False
.