There is no ' Animation ' attached to the ' Player ' game object

Source: Internet
Author: User

There is no ' Animation ' attached to the ' Player ' game object

Encounter this error when you practice the video tutorial of Unity3d shooting game with Miss Gong.

I know the meaning: when the player model is imported, the animation is not added correctly, suggesting that the animation mentioned in the script cannot be found. But actually, I set up the animated segment. Since the Unity 3D version is newer than the one used by the Gong teacher, this animation is split and different from the video.

Missingcomponentexception:there is no ' Animation ' attached to the ' Player ' game object, but a script was trying to access It.
You probably need to add a Animation to the game object "Player". Or your script needs to check if the component is attached before using it.
UnityEngine.Animation.PlayQueued (System.String Animation) (at c:/buildagent/work/d63dfc6385190b60/artifacts/ editorgenerated/animations.cs:645)
Player.update () (at assets/scripts/player.cs:16)
You only need to set the rig-animationtype of the U3D model to legacy.


Sync Hair on Blog http://anforen.com/wp/2014/11/there-is-no-animation-attached-to-the-player-game-object/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.