0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Unity】アニメーションに移行するのが遅い

Posted at

はじめに

どうも、あおいちです。

今回は「アニメーションに移行するまでに時間がかかる!なんで?」と思った人向けに、はUnityのAnimatorにおいて設定したアニメーションがすぐに移行しない理由を簡潔に解説していきたいと思います。本記事を最後まで読んでいただければ幸いです。

症状と原因

結論から言うと、下記の画像にもあるHas Exit Timeにチェックがついていることが原因だと考えられます。※こちらはProjectから使用しているアニメーターを開くとInspectorの画面がこのようになります。

アニメーションの遷移において、"Exit Time"という遷移時間が存在し、これによってアニメーションが遷移までのフレーム数を決定することができます。今回は、アニメーションを瞬時に設定して欲しいことから、その箇所のチェックさえはずしてもらえれば直るはずです。

参考

アニメーション遷移 - Unity マニュアル

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?