最近想学习一下游戏开发,于是对cocos2d-x和unity3D多少了解了一下,现在在学习unity3D中......
在学习中偶尔看看别人的教程,在学习Animation组件的时候,遇到了这个问题,别人顺利的运行了程序,
可我的总是出现这个问题:
The animation state Eat could not be played because it couldn't be found!
Please attach an animation clip with the name 'Eat' or call this function only for existing animations.
UnityEngine.Animation:CrossFade(String)
tiger:OnGUI() (at Assets/tiger.js:19)
开始没找到合适的,后来在看一个法国人给出的答案时,解决了这个问题:I have this problem ,
and i think i find the solution . select your player , then in the inspector area clik on "select" and know clik
on "Rig" and in the Animation type choose "Legacy ".
希望对遇到的人有所帮助!