Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Animation State Could Not Be found

Discussion in 'Editor & General Support' started by Sessional, Apr 21, 2013.

  1. Sessional

    Sessional

    Joined:
    Apr 21, 2013
    Posts:
    45
    I searched the web - and a few people have had this, none of which really seem to have found a solution as far as I can tell.

    I am using the book Unity Essentials 3.x packtpub or whatever it is:

    The problem is the animations won't be played. I dug around in the assets folder and found the clip called "dooropen" hitting the play button actually shows the door opening.

    Attempting to call this code just results in an error saying the animation state could not be played.
    Code (csharp):
    1. door.transform.parent.animation.Play("dooropen");
    The first thing I noticed is: I couldn't find anything that said animation split in unity 4. I did find the + symbol for adding animations and settings frames - and the video clip plays the proper animation.

    Any help would be great. Feel free to ask for any fields you may need, I'd love to be able to figure out where I went wrong.
     
  2. Sessional

    Sessional

    Joined:
    Apr 21, 2013
    Posts:
    45
    Figured it out. Went and dug around looking for how to reset preferences because I read someone's post. The log file says "animation must be set to legacy for outPost" - came across that a bit earlier, changed the "Rig" settings to use Legacy animation type and Generation "Store in Root (new)" And that seems to have fixed it.

    Can someone explain what this is all about for me?
     
    moderate41 and manipalsingh like this.
  3. TomoI

    TomoI

    Joined:
    Aug 9, 2011
    Posts:
    13
    Hey just wanted to say reading your thread solved the same problem I was having. so thanks for replying with your fix.

    Tomo
     
  4. Mixxit

    Mixxit

    Joined:
    Aug 28, 2013
    Posts:
    33
    thanks guys this also saved me!
     
  5. Ryza

    Ryza

    Joined:
    Dec 21, 2013
    Posts:
    7
    Thank You!
     
  6. ABEMOS

    ABEMOS

    Joined:
    Sep 26, 2013
    Posts:
    5
    I am having the same problem. How do I change the settings of animation to legacy?!

    Thank you.
     
  7. PianoMeow

    PianoMeow

    Joined:
    Sep 26, 2015
    Posts:
    107
    The only way I know but here are probably others is to
    1.click on the animation in your assets folder
    2.in the inspector go to edit
    3. Go to rig
    4.change animation type to legacy
    5.change generation to store in root new