Search Unity

Adding a curve to an animation that changes transform variable

Discussion in '2D' started by threedaymonk, Nov 19, 2013.

  1. threedaymonk

    threedaymonk

    Joined:
    Jul 10, 2013
    Posts:
    8
    Hey y'all,

    I just added a curve to my animation that changes the transform variable from (-1,0) unit to (-2,0) units which actually sets my game object to (-2,0) in the scene. Is there a way to base it on the current position and just move the game object (-1,0) from wherever it currently is?

    Thanks!
     
  2. plokkum

    plokkum

    Joined:
    May 28, 2013
    Posts:
    90
    You should have the object you want to animate in a parent object. Play the animation from the child (the one you want to animate).