MissingComponentException: There is no 'Animator' attached to

He everyone,

I am getting the above error in Unity when running or working with this game. Please see the screenshot for more information. If you have any insight, it would be appreciated.

Thanks,

Frank

Hi Frank,

Check the Body game object. Is an Animator attached to it?

Hi Nina,

I did check the body game object(cactus). It does not have an animator attached to it. I matched my inspector settings to Rick’s. Maybe I am not looking in the right place?

Thanks,

Frank

Well, the error message is logged into your console because the Body does not have an Animator component attached. Something expects an Animator object on that Body game object. Maybe your code? Does the Shooter try to access it?

Hi Nina,

Thanks for the help. I was able to fix the issue by removing the shooter script from both the parent and the child(body) and adding it back to the parent only.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms