U3D搞动画,代码如下:
run时提示错误:
MissingComponentException: There is no 'Animation' attached to the "Player" game object, but a script is 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:/buildslave/unity/build/artifacts/generated/common/modules/Animations.gen.cs:677)
Player.Update () (at Assets/Script/Player.cs:19)
跪求大神!
Before I met this,restart the Unity then It can run well!
看下,This script 在不在object上面,是不是component 提示Miss
你是不是没有给对象添加animation组件