Version: 2017.1

AnimatorController.AddEffectiveStateMachineBehaviour

マニュアルに切り替える
public StateMachineBehaviour AddEffectiveStateMachineBehaviour (Type stateMachineBehaviourType, Animations.AnimatorState state, int layerIndex);

説明

layerIndex のレイヤーにある AnimatorState に stateMachineBehaviourType クラス型の State Machine Behaviour をアタッチします。この機能は、同期したレイヤーを扱うときに使用されます。また、同期したレイヤーに State Machine Behaviour 加えたいときにも使用されます。C# ユーザーは Generic 版を使用できます。

RemoveEffectiveStateMachineBehaviour() がないことに注意してください。State Machine Behaviour を削除するには Object.Destroy を使用します。


public T AddEffectiveStateMachineBehaviour (Animations.AnimatorState state, int layerIndex);

説明

ジェネリック版。詳細については Generic Functions を参照してください。