animator.play() not working anymore
I've been working on a multiplayer game for the past few months now. The game is top down with four different directions. I've synchronized movement and the animations a few weeks ago, but all the sudden it is not working anymore.
animator.Play(animationName, 0);
Whenever this line is ran I get an error that says that the state cannot be found. I've tried debugging everything, and when I print animationName it does indeed match up to one of the animations in the controller. The layer is also correct as I only used the base layer for the animation.
I've tried changing the animations to legacy, which is a suggestion I found in similar posts, but the animations stopped working correctly on the client's end. Also, I am using a custom networking solutions I created myself, but I am positive that the animation packets are being received.
Still having some issues, I tried a few more things.
I added all of the animations to an Animation component rather than using a controller. The animations still could not be found for some reason.
Your answer
Follow this Question
Related Questions
Rigidbody / Animator Moving Y Position - bug? 1 Answer
Particle System not showing anything in its Component separated editor? 0 Answers
Animation Running Game 0 Answers
AvatarBuilder.BuildHumanAvatar set NaN positions with some avatars 1 Answer
How do I rotate specific joints/bones using a script? 0 Answers