SetStateEffectiveMotion
Sets the effective Motion for the AnimatorState. The Motion is either stored in the AnimatorStateMachine or in the AnimatorLayer's ovverrides. Use this function to set the Motion that is effectively used.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Animations
- Assembly: UnityEditor.CoreModule
SetStateEffectiveMotion(AnimatorState, Motion)
Sets the effective Motion for the AnimatorState. The Motion is either stored in the AnimatorStateMachine or in the AnimatorLayer's ovverrides. Use this function to set the Motion that is effectively used.
public void SetStateEffectiveMotion(AnimatorState state, Motion motion)
Parameters
The AnimatorState which we want to set the Motion.
The Motion that will be set.
SetStateEffectiveMotion(AnimatorState, Motion, int)
Sets the effective Motion for the AnimatorState. The Motion is either stored in the AnimatorStateMachine or in the AnimatorLayer's ovverrides. Use this function to set the Motion that is effectively used.
public void SetStateEffectiveMotion(AnimatorState state, Motion motion, int layerIndex)
Parameters
The AnimatorState which we want to set the Motion.
The Motion that will be set.
The layer to set the Motion.