Search Unity

how to make animations keep looping?

Discussion in 'Animation' started by aldrnari7635, Oct 3, 2018.

  1. aldrnari7635

    aldrnari7635

    Joined:
    Oct 2, 2017
    Posts:
    35
    Hi all, i'm using unity 2018.1.3f1. I am setting up a character to walk forward. When the animation reaches the end of the walk forward file. It goes back to the idle state and keeps plays the idle animation. Then goes back into the entry animation until I press the walk foward ( W) key. The animation tree starts with a green " Entry" box with a red arrow pointing to the orange " Idle" box. The idle box points with a white arrow to the grey "walkforward" box. The walk forward box points to the "idle box with also a white arrow. ( There are 2 white arrows.)

    How do I make the walk forward animation loop as long as I hold down the "W" key?

    p.s. : I followed all steps in this video on youtube,

    Mecanim Tips- Basic Walk Scripting.

    Except i used diffrent bvh files.
     
  2. Mecanim-Dev

    Mecanim-Dev

    Joined:
    Nov 26, 2012
    Posts:
    1,675
  3. aldrnari7635

    aldrnari7635

    Joined:
    Oct 2, 2017
    Posts:
    35
    Thank you very much.

    All I had to do was click the arrow under my character's name. Then click "select" in the inspector panel. Then Click "Animations" Then scroll down to "loop time" And click that. Done! :D