How to do it...

To create a state transition in an Animator Controller, follow these steps:

  1. Open the Animator Controller asset.
  2. Add at least two states by dragging and dropping two animations into the Animator window. You can also point the cursor at an empty space in the Animator window, press the right mouse button and select Create StateEmpty, then select the state, and add an animation to the Motion field in the Inspector.
  3. Click on the right mouse button on the state you want to transition from and choose Make Transition.
  4. Drag the transition onto the state you want to transition to and click the left mouse button.
  1. A default transition will be created. The state will switch after its animation has finished playing. To be able to observe it in gameplay, make sure you transition from the default (orange) state, as only the default state will play when the game starts.
..................Content has been hidden....................

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