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.

Question Apply Root Motion does not work with UI Image

Discussion in 'Animation' started by theNfan, Sep 28, 2022.

  1. theNfan


    Dec 30, 2020
    So, I wanted to use an animation to move a UI Image upon a click. It should move along the x axis - and stay there until I click again.
    Unfortunately, after playing the animation, the position of the Image snaps back. I enabled Apply Root Motion on the Animator and disabled looping on the Animation.
    I tried the same thing with a Sphere and there everything works as expected.

    Is this a bug? Or somehow expected? Is it even a good idea to use animations for UI elements?

    I included a tiny test scene.

    Unity version is 2021.3.8f1.

    Attached Files: