Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How Transition to specific time in animation?

Discussion in '2D' started by KhashayarJan, May 26, 2019.

  1. KhashayarJan

    KhashayarJan

    Joined:
    Jul 25, 2016
    Posts:
    12
    Hi
    I have 2 2D animations. Standing_Attacking and Running_Attacking.
    The attacking is a sword moving from top to bottom.
    What I want is when I transition from S_A to R_A (or viseversa), the sword be in the same location. They both have the same keyframe meaning that in S_A 4th frame the sword is in the same location as R_A 4th frame.

    Another way I can explain my problem is this. If I'm in the frame number (x) of the animation, start next animation at the (x)th frame.

    How can I achieve this in an easy way? (without hard coding or changing my frames)