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

Bug Animation works differently in editor than in build

Discussion in 'Animation' started by zeecalibur, May 19, 2022.

  1. zeecalibur

    zeecalibur

    Joined:
    May 17, 2020
    Posts:
    3
    Hello I'm trying to make a simple animation that rotates and object 120 degrees when I press a button. When I use the play button to test the game the animation works fine, but when I build the project and run it the object does not rotate all the way. I have no idea why this is happening. Please help

    (Note: When I play the project in the editor and run the animation it only works if I have the object selected in the inspector or animator, otherwise it only rotates about half way)
     
  2. zeecalibur

    zeecalibur

    Joined:
    May 17, 2020
    Posts:
    3
    I think I figured it out. The object had a rigid body and for some reason that was causing the issue