返回首页DA系统C#IDE文件同步服务屏保 今天是: 2026-05-05    "立夏"  夏季的第一个节气,表示盛夏时节的正式开始

搜索
热搜: linux 技术
Hi~登录注册
查看: 1820|回复: 0

[原创] 【原创】Unity有动画片段但是提示找不到的冷门解决方法

[复制链接]
发表于 2021-5-6 00:29:07 | 显示全部楼层 |阅读模式
报异常,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选项即可成功解决并播放动画。




本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册成为修仙之旅的少年~

x
游客
回复
*滑块验证:

DA论坛飞机票来了~
快速回复 返回顶部 返回列表