- Home /
help with animation
Hi im a huge noob at the animation component in unity But here's my problem, i have a decent walking animation for my character, One For Each Leg But when i put animation.Play("LeftLegWalking"); animation.Play("RightLegWalking"); In the script and press W, i get this error,
The animation clip 'RightLegWalking' used by Animation component 'RightLeg' could not be found in the animations list. And my character keeps his legs moving even when idle. If anyone could help it would be greatly appreciated
Could you take a screenshot of your animation component from the inspector ?
Answer by Nikunj-Kareliya · Aug 10, 2015 at 10:24 AM
@BloodBTF, you are using unity's legacy animation system. You need to drag default animation clip in the inspector and need to include all animation clips in the animations array as I posted screenshot below. Try it, it will work.
so both left and right leg animations into one component? Or a seperate component for each leg transform?
I would suggest to read doc here. Also read mecanim animation system. Try out free readymade projects from assetstore in which animations used on character, just b'cz to observe components and flow. Basically unity provides 2 animation system: legacy & mecanim. Read on it.
I am recommend to you, refer this package. Observe hierarchy & inpector.
And also try, by unchecking the play automatically field in the animation component, as mentioned in above screen shot.