Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Any way to stop Animator reset?

Discussion in 'Editor & General Support' started by quinnbot, Oct 15, 2014.

  1. quinnbot

    quinnbot

    Joined:
    Sep 18, 2014
    Posts:
    10
    For some reason, when I disable a gameobject (or any parent gameobject!!) with an Animator component, the Animator becomes reset, losing all state! Is there any way to stop this?


    To expand on the issue more, I am using Animators to run much of the UI in my game. They keep state about various nodes like: Explored, Invisible, Controlled, etc, etc. As the player moves in the game board I switch the animation to different states to show them how they are progressing. But when I enter combat (which is like a mini-game) I disable the gameobject which contains all the nodes since there is no reason to waste updates on them while they arent needed. But when I reenable the gameobjects, the animators restart with the original state. Why does this happen?