Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

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.

layerIndex

The layer that is queried.

Returns

Type

Description

Motion