报异常,The animation state “动画名称” could not be played because it couldn't be found!
【异常语句
The animation state tiao2 could not be played because it couldn't be found!
Please attach an animation clip with the name 'tiao2' or call this function only for existing animations.
UnityEngine.Animation:CrossFade (string)
DHPlay:DHPlayFF (string) (at Assets/Script/New-Pro-Script/Enemy/DHPlay.cs:31)
EnemyControl:Update () (at Assets/Script/New-Pro-Script/Enemy/EnemyControl.cs:78)
】
但是资源里已经有动画片段了
这时可以尝试修改动画片段的模式,双击报找不到动画片段的动画,然后找到游戏资源对应的动画片段,点击。
在右上角的三个小点选项中更改为debug调试模式
然后勾选Legacy选项即可成功解决并播放动画。
|