Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Question Apply Root Motion does not work with UI Image

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

  1. theNfan

    theNfan

    Joined:
    Dec 30, 2020
    Posts:
    25
    Hi,
    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:

  2. OneKnife

    OneKnife

    Joined:
    Aug 7, 2017
    Posts:
    4
    I encounter same issue too, still finding a solution.