Search Unity

Set duration of mecanim animation

Discussion in 'Editor & General Support' started by yuze, Jun 3, 2013.

  1. yuze

    yuze

    Joined:
    Dec 17, 2012
    Posts:
    42
    Hi guys, I'm not a coder or anything but wondering how to set duration of an animation in Animation controller.

    I basically just want an looping idle to play for many seconds before an idle special plays. Any advice? Thanks!
     
  2. Mecanim-Dev

    Mecanim-Dev

    Joined:
    Nov 26, 2012
    Posts:
    1,675
    Yes, I don't know which version you using, but from 4.2 you can set the exit time of a transition to a value greater than 1 like 4.90 which mean the animation will be played 4 time and at 90% of the 5 time it will transition to another state.
     
  3. yuze

    yuze

    Joined:
    Dec 17, 2012
    Posts:
    42
    That seems perfect!

    I checked for updates but only the latest one is 4.1.3?