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

Stop anim at the end - Root motion?

Discussion in 'Animation' started by IL4Mi3y, May 21, 2015.

  1. IL4Mi3y

    IL4Mi3y

    Joined:
    Dec 29, 2014
    Posts:
    38
    I searched a very long time but I could not find the solution.
    I want to create little animations suchs as rotating and moving an object.

    I select the object and go to the Animaion window. Then I create a new clip and do all my animation stuff (curves). Now I have directly an animator at my object.
    When I press play the animation is played looped.

    I don't want it to be played looped so I added a new state to the animator and make a connection between my animation state and the new state.

    Now the animation is played once but runs completly and then I have the same position and rotation as at the beginning. But I want the position and rotation from the end of my animation.

    So how I can practise it that my animation stops at the end?

    If I try to use "Root Motion" my object do not move.

    (The object is created with blender and imported as .fbx)
     
  2. Mecanim-Dev

    Mecanim-Dev

    Unity Technologies

    Joined:
    Nov 26, 2012
    Posts:
    1,675
    theANMATOR2b and IL4Mi3y like this.
  3. IL4Mi3y

    IL4Mi3y

    Joined:
    Dec 29, 2014
    Posts:
    38
    @Mecanim.Dev
    Thank you! I also have to enable "Root motion" and click "Generate motion curves" on the animation.