- Home /
The question is answered, right answer was accepted
Importing model with animations - Lerpz
Hello, this is the first time I'm trying to import a model with animations. I want to make a 2d platformer and I found and tuned a movement script. Now I want to add animations to the script, but the only model I have is Lerpz from the 2d tutorial.
Now, In the tutorial the animations are children of the Lerpz prefab (it has like 10 animations), but when I import the prefab, I get only 1 animation named "Take 001". That one animation is actually all animations put together in one object.
Also, when I check the imported Lerpz model, it has an Animator component with a lerpzAvatar attached, but the Lerpz in the tutorialproject has an Animation component with all of the animations.
So how do I import the model with the animation component and without the animator component?
EDIT: also, the script I found for moving uses a character controller component. If I want to use animations, how do I use them via script? Can i just use charactercontroller.animation.CrossFade("Walk")?.
Answer by Imankit · Jan 04, 2013 at 11:52 AM
In unity imported fbx models has only one animation which is the combination of all the animations.. So if you want seperate animations check the frames of each animation and split animations in Inspector of your imported fbx..
Oh right..didn't see it - like I said first time i'm working with animations.
Follow this Question
Related Questions
Blender to Unity Animations 1 Answer
Why can't I import animations? 1 Answer
Maya Import Problems 0 Answers
Model not playing Animations 0 Answers