Version: 2023.1
언어: 한국어

Animator.keepAnimatorStateOnDisable

매뉴얼로 전환
public bool keepAnimatorStateOnDisable ;

설명

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

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.


Setting this property to true also keeps animated values when a GameObject is disabled. For example, a GameObject's transform is animated from x=0 to x=3. When the GameObject is disabled, it keeps the animated value x=3.


This property is serializable and can be saved in a Prefab.
This property applies to the AnimatorController associated with the Animator. This property does not affect AnimatorControllerPlayable.