Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Animations bugging out after SetActive(false).

Discussion in 'Animation' started by Z4CH4RYxD, Sep 3, 2021.

  1. Z4CH4RYxD


    Jul 22, 2020
    Essentially, I have two weapon game objects set up for my FPS. A knife and a gun. The way I have it switching weapons is by setting one active and one inactive. However, when I re-equip a weapon after deactivating it during an animation the animations are wonky until I reset them. The only thing I can see causing this right now is that after the gameobject is disabled Unity thinks that wherever the previous animation left off is where the global(? not sure if that's what to call it) position is located. If anyone has any help or tips it's greatly appreciated.