Legacy Documentation: Version 5.4
LanguageEnglish
  • C#
  • JS

Script language

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

Animator.runtimeAnimatorController

Switch to Manual
public RuntimeAnimatorController runtimeAnimatorController;

Description

The runtime representation of AnimatorController that controls the Animator.

Swapping Animator.runtimeAnimatorController with an AnimatorOverrideController based on the same AnimatorController at runtime doesn't reset state machine's current state.