There is no ‘Animation’ attached to the “Player” game object

There is no ‘Animation’ attached to the “Player” game object

在照着龚老师的Unity3D投篮游戏视频教程练习时,遇到这个错误提示。

我知道意思:就是player模型导入时,动画没有正确的加进来,提示说找不到脚本中提到的Animation。但实际上,我是设置了动画分段的。由于Unity 3D版本比龚老师录视频时用的新,这段动画拆分,就和视频上有不同。

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:/BuildAgent/work/d63dfc6385190b60/artifacts/EditorGenerated/Animations.cs:645)
Player.Update () (at Assets/Scripts/Player.cs:16)
只需要将u3d里模型的Rig-Animationtype 设置成Legacy。


同步发在博客 http://anforen.com/wp/2014/11/there-is-no-animation-attached-to-the-player-game-object/

原文转载地址:http://blog.csdn.net/metababy/article/details/40746231

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值