AnimancerでPlayしても再生されない時の対処法

Animancer Lite | Animation Tools | Unity Asset Store
Use the Animancer Lite tool from Kybernetik on your next project. Find this & more animation tools on the Unity Asset Store.

Animatorをプログラムから簡単に使えるようにするアセットです。GC allocもなくパフォーマンスにも優れていそうです

AnimancerComponent.Play(AnimationClip)を呼ぶと、一回目は再生されるのに二回目は再生されませんでした。

スポンサーリンク

対処法

anim.Play(animationClip).Play().Time=0f;

こうすることで正常に再生できました。どうも同じanim clipを渡すと何もしないみたいです

Unity
スポンサーリンク
masakamiをフォローする
まさかみブログ