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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unity 5 Rotate Animation problem

Discussion in 'Animation' started by darthbobr, Mar 25, 2015.

  1. darthbobr

    darthbobr

    Joined:
    Jul 2, 2014
    Posts:
    6
    So, I've got the following issue after upgrading to Unity 5. I have animation sprites for character and clips representing Left and Right movement direction. Actually both clips are using the same sprites, however one clip has an additional rotation parameter and rotates all the sprites on 180 degrees around Y axis. Everything was working excellent on Unity 4.6, however now in the Scene mode the animations are also played correctly but when I press play and go to the game mode - the animation clip with rotation parameter is played as if it doesn't have the rotation. In other words both clips show the same animation. Is this a bug or this should be handled somehow else now? I've noticed the Mirror flag in the Animation clip properties, however it changed nothing in my case. Is there any workaround to fix this issue?
     
  2. Democide

    Democide

    Joined:
    Jan 29, 2013
    Posts:
    315
    I have just noticed the same issue just now. I've upgraded my project to Unity5 and I have a bunch of canvas elements that turn around 180 degrees on the Y axis (cards flipping). That flipping is now no longer working. Wierdly it works, when I preview the Animation clip from the Animation Window, but not when the game is running. This is odd.
     
  3. Democide

    Democide

    Joined:
    Jan 29, 2013
    Posts:
    315
    Ah. Found it. Apply Root Motion needs to be turned off, then it works.

    This is weird though. The animation (at least in my case) moves/rotates the root object, and that still seems to work, even with Apply Root Motion turned off. Doubly so since the game gives me a "Root position or rotation are controlled by curves" warning when I uncheck Apply Root Motion.
     
    theANMATOR2b and Golio like this.
  4. adhamBer

    adhamBer

    Joined:
    Feb 14, 2015
    Posts:
    3
    Hey dude question,
    I have the same problem when apply root motion is on, my rotation animation would not work and when I turn it off it works but with a price, my game slows down incredibly! any ideas why? or how to fix it?
    - thanks in advance! hope u reply soon.
     
  5. Democide

    Democide

    Joined:
    Jan 29, 2013
    Posts:
    315
    Nope. I was really just experimentation. I have no clue why this is working.