- Home /
Animation can't find my animations
Hi. I created a model with animations in 3D max on timeline. In Unity I split it into 4 parts called Walk, Death, Stay and Jump. Error massages:
The animation state walk could not be played because it couldn't be found! Please attach an animation clip with the name 'walk' or call this function only for existing animations. UnityEngine.Animation:Play(String)
The problem is I got this animation. I've got component called Animation. In category Animations exists 4 animations called as I said at the top. I have no idea why it doesn't work. The problem is also that my model can't be loaded in default stay position.
What can I do?
EDIT: In-script code
public Animation walk;
if(blablabla) animation.Play ("walk");
What kind of animation system are you using? You might need to switch it to Legacy mode when viewing the .fbx
Also not sure what you mean that you split it into 4 parts in Unity? Shouldn't it already be split before you import it?
you don't need to create an animation variable for Legacy. If the animation includes one called "walk" you can simply go animation.Play("walk");