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

What do I do if my camera freezes an axis after animating?

Discussion in 'Animation' started by b21maxla, Dec 6, 2021.

Thread Status:
Not open for further replies.
  1. b21maxla

    b21maxla

    Joined:
    Nov 4, 2021
    Posts:
    1
    I'm making a game where I animate my camera to look around right at the start of the game. The camera is controlled by the mouse and the animation runs as it's supposed to but afterwards my x-axis seems frozen and I can't look up/down. The y-axis moves like normal. If I disable the animation controller and run the game without the animation everything works as normal.

    Edit in case someone stumbles upon this post:
    I solved this by deactivating the animator component programmatically. It's far from perfect but it does the job. If anyone has a better way to solve it, please let me know!
     

    Attached Files:

    Last edited: Dec 6, 2021
    KalOBrien likes this.
  2. KalOBrien

    KalOBrien

    Unity Technologies

    Joined:
    Apr 20, 2021
    Posts:
    89
    Glad you solved it :)! Locking now as its been answered
     
Thread Status:
Not open for further replies.