I am currently trying to make a soldier play an animation for a third person view for my multiplayer game. I had just imported the BootCamp soldier in for a placeholder, along with all the animations. In my script, I had wrote:
anim.animation.CrossFade("Standing");
And apparently the Unity Console tells me the animation ‘Standing’ is not attached to the anim GameObject, but it clearly is. The complete error is the following:
The animation state Standing could not be played because it couldn't be found!
Please attach an animation clip with the name 'Standing' or call this function only for existing animations.
UnityEngine.Animation:CrossFade(String)
MultiplayerMulti:UpdateAnimations() (at Assets/_Scripts/MultiplayerMulti.js:56)
MultiplayerMulti:Update() (at Assets/_Scripts/MultiplayerMulti.js:35)
MultiplayerMulti line 56 is just the line I had provided above.
As you can see, it is CLEARLY attached to my Soldier object. And yes, the soldier object IS SET AS THE GameObject for the anim variable! Any idea what the real problem is is appreciated.
Thanks in advance,
william9518