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

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原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。