Legacy Documentation: Version 5.5
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

AnimatorController.SetStateEffectiveBehaviours(AnimatorState,int,StateMachineBehaviourInfo[])

Parameters

state The AnimatorState which we want to set the Behaviour list.
layerIndex The layer to set the Behaviour list.
behaviours The Behaviour list that will be set.

Description

Sets the effective state machine Behaviour list for the AnimatorState. The Behaviour list is either stored in the AnimatorStateMachine or in the AnimatorLayer's ovverrides. Use this function to set the Behaviour list that is effectively used.