Search Unity

Question Animations bugging out after SetActive(false).

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

  1. Z4CH4RYxD

    Z4CH4RYxD

    Joined:
    Jul 22, 2020
    Posts:
    1
    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.