Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Super Simple Animation Help

Discussion in 'Animation' started by Noah492, May 26, 2015.

  1. Noah492

    Noah492

    Joined:
    Jul 2, 2014
    Posts:
    44
    Hi guys I am very frustrated because I cannot get this to work. I have a character with only 2 animations (Idle and Run). I just want to have idle play continuously until I hold W and the running animation would then play.
    upload_2015-5-26_17-13-4.png
    Here is what I got. Script on the right. (Probably wrong). W does nothing at all and Idle plays through but does not loop. Instead it plays right to the running animation and then goes back to idle.

    Any help would be GREATLY appreciated. Thanks!
     
  2. legendz25

    legendz25

    Joined:
    May 30, 2014
    Posts:
    17
    @Noah492
    Are you setting the Speed parameter transitions between the AnimationIdle and AnimationRun? I believe you have to say what is the Speed parameter's threshold before transitioning from Idle to Running.
     
    theANMATOR2b likes this.
  3. pixelone

    pixelone

    Joined:
    Apr 16, 2010
    Posts:
    157
    Set Idle animation to loop under the animation Tab. And do what @Noah492 suggests
     
    theANMATOR2b likes this.