Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Animator.keepAnimatorControllerStateOnDisable should be shown in inspector

Discussion in 'Animation' started by Rabadash8820, Apr 24, 2020.

  1. Rabadash8820

    Rabadash8820

    Joined:
    Aug 20, 2015
    Posts:
    97
    The Animator.keepAnimatorControllerStateOnDisable field is not very discoverable in the Editor; the only way I noticed it was while looking at the fields of an Animator that could be modified via UnityEvents. Seems like if this field is serialized and publicly settable in code, that it should also have a checkbox in the Animator Inspector.
     
  2. TJHeuvel-net

    TJHeuvel-net

    Joined:
    Jul 31, 2012
    Posts:
    838
    upload_2020-11-3_14-49-18.png

    It actually shows up in debug mode, just not normally.
     
    DungDajHjep and Rabadash8820 like this.
  3. DungDajHjep

    DungDajHjep

    Joined:
    Mar 25, 2015
    Posts:
    202
    It is really important in resetting the state of gameobjects disabled by animations.
     
  4. koirat

    koirat

    Joined:
    Jul 7, 2012
    Posts:
    2,098
    pqowp90 likes this.