Version: 2022.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.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961