Skip to main content

Animator.keepAnimatorControllerStateOnDisable

NameType
keepAnimatorControllerStateOnDisableboolean

Description

Controls the behaviour of the Animator component when a GameObject is disabled.

Extra Detail

Set to true to keep the current state of the Animator controller. Set to false to clear the current state of the Animator controller. The default value is false.