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.
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.
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?
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