GetStateEffectiveMotion
Gets the effective Motion for the AnimatorState. The Motion is either stored in the AnimatorStateMachine or in the AnimatorLayer's ovverrides. Use this function to get the Motion that is effectively used.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Animations
- Assembly: UnityEditor
GetStateEffectiveMotion(AnimatorState)
Gets the effective Motion for the AnimatorState. The Motion is either stored in the AnimatorStateMachine or in the AnimatorLayer's ovverrides. Use this function to get the Motion that is effectively used.
public Motion GetStateEffectiveMotion(AnimatorState state)
Parameters
The AnimatorState which we want the Motion.
Returns
Type | Description |
|---|---|
| Motion |
GetStateEffectiveMotion(AnimatorState, int)
Gets the effective Motion for the AnimatorState. The Motion is either stored in the AnimatorStateMachine or in the AnimatorLayer's ovverrides. Use this function to get the Motion that is effectively used.
public Motion GetStateEffectiveMotion(AnimatorState state, int layerIndex)
Parameters
The AnimatorState which we want the Motion.
The layer that is queried.
Returns
Type | Description |
|---|---|
| Motion |