Animation State は Animation State Machine の基本構成要素です。各ステート(状態)には、個々のアニメーションシーケンス(もしくは ブレンドツリー)が含まれていて、キャラクターがそのステートに入ったときに再生されます。ゲーム内のイベントがステート遷移をトリガーすると、キャラクターは新しいステートに移行し、対応するアニメーションシーケンスに動作が遷移します。
アニメーターコントローラー のステートを選択すると、インスペクター上で、そのステートに対応するプロパティが表示されます。
プロパティ | 機能 |
---|---|
Speed | アニメーションのデフォルトの速度 |
Motion | ステートに割り当てられているアニメーションクリップ |
Foot IK | このステートで Foot IK を有効にします。ヒューマノイド アニメーションで適用可能です。 |
Write Defaults | アニメーションキーが設定されていないプロパティにデフォルト値を使用します。 |
Mirror | ステートをミラー (左右反転) します。これはヒューマノイドのアニメーションにのみ適用可能です。 |
Transitions | このステートからの遷移先ステート一覧 |
茶色で表示されるデフォルトのステートは、最初に起動されたときのステートです。デフォルトの状態を変更したい場合は、別のステート上で右クリックし、コンテキストメニューから Set As Default を選択します。各遷移上 solo や mute のチェックボックスは Animation View の動作を制御するために使用されています。詳細は ソロ、ミュート機能 を参照してください。
ステートを新しく追加するときは Animator Controller ウインドウ の何もない空間を右クリックし、コンテキストメニューで Create State->Empty を選択します。別の方法としては、Animator Controller ウインドウにアニメーションをドラッグすることで、そのアニメーションを含むステートを作成することができます。コントローラーには Mecanim アニメーションしかドラッグできないことに注意してください。Mecanim 以外のアニメーションは拒否されます。ステートは ブレンドツリー も含みます。
Any State は常に存在する特殊なステートです。現在どのステートにいるかに影響を受けることなく、特定のステートに遷移したい場合のために存在しています。これは、全ステートに同じ遷移先を追加するのに手早い方法です。Any State は、その特殊な機能によって、ステートの遷移先とすることはできません (つまり、次の遷移先にランダムなステートを選択するための手段としては Any State は使用できませんので注意してください)。
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.