Connecting the clips in the Animator Controller

Now we need to add the clips to the FlyingDrone Animator Controller and transition between them:

  1. In Hierarchy, select the FlyingDrone, and double-click the FlyingDrone Animator Controller in the Animator component.

The Controller now shows the two animation states, with Idle as the default entry state. We now want to connect it to the Fly animation. And when Fly is done, it should transition back to Idle.

  1. Right-click on the Idle state, select Make Transition, and drag it onto the Fly state.

You can preview a transition by clicking on the transition line. Then in Hierarchy, drag the FlyingDrone onto the preview area in Inspector.

  1. Right-click the Fly state, select Make Transition, and drag it back onto Idle.

Now the animation tree will play in a loop.

You can watch the animation states change when playing your game in the Unity Play mode when the Animator window is visible.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.17.68.14