Search Unity

Question How to make the animation of the parent not affect the position of the child?

Discussion in 'Animation' started by OdIUm, Feb 15, 2022.

  1. OdIUm

    OdIUm

    Joined:
    Mar 6, 2017
    Posts:
    18
    Greetings!

    I'm trying to make an animated menu.
    There is a parent empty object Holder and button object, that attached to it.

    -Holder
    --Button

    I want to trigger a random click animation from a set of animations when a button is clicked.
    Then the button should move out from the screen.

    I have created a set of click animations for a button, some of which leave the button out of its base position and rotation.
    I created a animation to move Holder object out from the screen.

    The problem is that when Holder animation start (moving out from the screen), the position and rotation of the button is reset to 0.

    How can it be solved?