您的位置:首页 > 移动开发 > Unity3D

unity 在播放动画时报错 The animation state XXX could not be played because it couldn't be found!

2020-03-04 23:21 941 查看

unity 在播放动画时报错 The animation state XXX could not be played because it couldn't be found!

有模型的解决方案

选中动画模型文件然后animation type 选legacy

无模型动画的解决方案

inspector有一个debug模式,你在debug模式下修改一下Animation Type为0 就可以了

Unity有两套Animation系统,一套是legacy,一套是Mecanim。

Debug模式下的Animation Type 0表示Mecanim,可以用于animator;1表示Legacy,用于animation组件
(unity5.6.5中是Legcy勾选)

  • 点赞
  • 收藏
  • 分享
  • 文章举报
weixin_45418645 发布了1 篇原创文章 · 获赞 0 · 访问量 86 私信 关注
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐