想用Animation播放影片,運行之后顯示
錯誤 3 The animation state BenPao_TY could not be played because it couldn't be found!
Please attach an animation clip with the name 'BenPao_TY' or call this function only for existing animations.
按照網上的說法把Rig animation Type改成 Legacy,還是不行
求大神指導
uj5u.com熱心網友回復:
少了一個狀態呀。。。。。名稱要是BenPao_TY你就是用cocostudio做的影片吧
少了一個timeline(如果你有用過flash)
一個animation clip相當于一條timeline
你看周潤發說的,ng少,老戲骨,拍一條就過了,也就是這個意思
可是你連那一條都沒有
(和改animation的屬性,type,美什么關系吧)
uj5u.com熱心網友回復:
如果還是不明白,請看23年前的flash 影片在電腦的實作是如何第一次被創造出來的http://blog.csdn.net/avi9111/article/details/52181508
uj5u.com熱心網友回復:
第一步,檢查animator是否存在,即檢查你需要播放影片的物件是否有animator組件。第二步,雙擊你的animator controller,檢查是否存在你代碼中所描述的state名稱,即animator.play&&animator.crossfade引數中的字串。如果你代碼中寫了animator.crossfade("test1",0.5f)而你的animator里面沒有test1這個影片狀態,那么就會報錯。
第三步,確保你的test1狀態具有一個影片片段。
以上。
uj5u.com熱心網友回復:
666我能用得到轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/64379.html
標籤:Unity3D
上一篇:長大后才懂的蠟筆小新 ????
