- Home /
how to solve MissingComponentException: There is no 'Animator' attached to the "Ethan 1" game object
I want to add my character animation but i cant achieve this i got this error although i select legacy both of character and animations.The exception is that; MissingComponentException: There is no 'Animator' attached to the "Ethan 1" game object, but a script is trying to access it. You probably need to add a Animator to the game object "Ethan 1". Or your script needs to check if the component is attached before using it.
Answer by Baste · May 29, 2015 at 01:51 PM
The problem is that there's no Animator component attached to the gameobject named "Ethan 1", but you have a script that's trying to access it.
The best way to solve it is to actually attach the Animator component to the "Ethan 1" gameobject.
It's right there in the error message.
Click your Ethan 1 object. It does not have an animator attached. It might have an Animation component attached, but no Animator. If you want to use the Animation component, you have to use that in the script, instead of the Animator.
Your answer
Follow this Question
Related Questions
Animation not looping 1 Answer
Create animation transitions via script. 0 Answers
Animation State Machine Script Control Issue 1 Answer
Mirroring animation clip without mirroring root motion node? 0 Answers
The animation does not play when I click 2 Answers