FBX Animation not playing?

When I import my (Well, they aren’t actually mine, but that’s not the point) .FBX animation files into unity the don’t play when I go into test mode. I will upload the animations in case you need them.

618832–22011–$UnityCoyote.rar (1.08 MB)

Thanks!

Did you even script the animations to be played? Also it might be better to keep all animations in 1 files with the model as 1 FBX file.

The coyote looks really cute or cool, your choice.

Yes, I think I did script them using the third person controller script and selected them all into the right place.

Since you didnt make it i assume you cant look at it in the original modelling program? I looked in my program and everytihng is there, animation too. But the controllers that are animated, are not linked or connected to the bones. So that is why the model is not animating. The bones are connected to the model though.

So what you can do is link the controllers to the bones and that will make the animations work with everything - controller > bones > model. If that is not the case which it should be, then i dont know why the person who gave you the model did not link the controllers to the bones. Or maybe when he exported the model and animation he exported it wrong and the links are disconnected. It could be that he didnt export it for Unity use, which can be the extra reason, cause maybe he didnt prepare it right.

Also… I think controllers shouldnt even be there… So thats a sign that he didnt export it for unity use. Well just assuming.

Thanks for your help and for spotting that out, I will look at the script in unity and see what I can do.

I got all the animations and models from the locomotion files, someone kindly converted them to .fbx files so I could use them, since I can afford Maya :roll_eyes:. I thought that I would be able to use the animations simply by connecting them to the third person controller script…?

And may I ask what program you viewed the files in?

There is no point looking at your script, those FBX files have been exported incorrectly and are unusable.

You can see this for yourself with the Animation window inside Unity. There are no animation tracks on the bones themselves, just some controller objects that aren’t connected to anything. (and were probably part of the rig inside Maya)

If I had to hazard a guess, whoever exported them for you missed the bone baking step. (and didn’t selectively export the skin and the bones)

I am using 3ds max.

I think what you have to do is link the controller and bones in your modeling program (maya) and that should do the trick. But you may also have to export it properly out into the .fbx format. Look up the unity manual for the exporting suggestions and requirements for your specific modelling program.

Also try to export it as one file… All animations should be in 1 file with the model. Which means you will have to merge the many animation files into 1 file with the model as one and export only that file. The bones and mesh is all you need i believe, leave the controllers out.

The 3rd person scripting itself should play the animation fine once you link the controllers to the bone and do the other preparation steps for the character. But you will have to define the animations as walk, run, jump, etc, with their proper frames, otherwise it will just play the idle animation. Etc. A lot of steps to do but simple.

I hope you know how to do all that i have mentioned or just learn how to do it. If not, then theres no way you will be able to get that model in with animations cause you wouldnt know why or how to make it work or why its not working.

Try testing other models that were exported properly for Unity, etc. Understand the technical workflow and what is needed. Maybe make your own character, a sphere, give it 2 bones with animations (with or without controllers), and export it properly for unity. If you can do that. Then you will know how and why you may be having a problem with that character.

Anyways i just woke up, helping my newphew. So i am in the spirit to help others. But i am so tired from only a few hours sleep and other work.

Thanks for everything, sadly I don’t own Maya so not much can be done. I really appericiate the help :slight_smile: One last question… would these files work with the locomotion system or not? Sorry to bug you…

Havent used the locomotion system. But the way that coyote has been exported. I would assume, as it is, it would not work with anything cause the animation info is not given to the bones or mesh, only the controllers, and unity from what i have seen does not use controllers so the locomotion might not work. But the locomotion system might move the bone legs and so the mesh legs too, but thats about it.

Good luck in what your trying to do. Maybe you should use Blender its free. And it can do pretty much all the things commercial modellers programs can do. The only thing about blender is it’s interface and controls are pretty hairy and all over the place so it can be hell learning its interface alone. I guess you can say its built for maC or something :slight_smile:

Haha, that’s modeling program I have right now! I am a bit of a fail at modeling, but hey, after some practise I might get the hang of it. And yes, the interface makes me die a little inside sometimes. And the Locomotion system scripts see me give me ‘complier error’, don’t know why. I must just go ahead with blender, study it for a while and learn how to use it properly, then maybe I might have a chance.

Thanks and good luck to you too :slight_smile: