hi, i imported a 3Dstudio model with animations in unity, i split the animations in walk and fight.
i created this script:
var clip : AnimationClip;
function Start(){
animation.Play(clip.name);
}
i assigned the animation clip as variable in the inspector of the script attached to my model, but i still have an error:
The animation state fight could not be played because it couldn’t be found! Please attach an animation clip with the name ‘fight’ or call this function only for existing animations.
Can someone help me?
Thanks, the problem was that i didn't set animations as legacy in rig tab. now i have solved.
– F_F