Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetNextAnimatorStateInfo(int)

Returns an AnimatorStateInfo with the information on the next state.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AnimationModule
public AnimatorStateInfo GetNextAnimatorStateInfo(int layerIndex)

Parameters

layerIndex

The layer index.

Returns

Type

Description

AnimatorStateInfoAn AnimatorStateInfo with the information on the next state.