Search Unity

Timeline animation play mirrored clip?

Discussion in 'Timeline' started by deab, Sep 20, 2017.

  1. deab

    deab

    Joined:
    Aug 11, 2013
    Posts:
    83
    How do play an animation clip from a timeline, but mirrored?

    Its a flag in the Animator state, but I can't find anyway to replicate this with the timeline animation track.
     
  2. deab

    deab

    Joined:
    Aug 11, 2013
    Posts:
    83
    Forgot to mention, the clip is added by script, using AnimationTrack.CreateClip(), so I'm looking for a way to set mirror by script also.
     
  3. thierry_unity

    thierry_unity

    Unity Technologies

    Joined:
    Jun 10, 2015
    Posts:
    178
    Unfortunately there is no way to ''reverse'' a clip right now in timeline and it's not an easy task to fix it. only workaround is to create a clone and reverse it in the animation window.
     
  4. deab

    deab

    Joined:
    Aug 11, 2013
    Posts:
    83
    @thierry_unity thanks for the reply, to clarify are you referring to the mecanim humanoid 'mirror' option? That was my intent. I worked around by playing the clip from a script, just using the timeline as a timer. Seems like this would be a useful addition!
     
  5. thierry_unity

    thierry_unity

    Unity Technologies

    Joined:
    Jun 10, 2015
    Posts:
    178
    Sadly, I'm no animation expert... but I was told that you can use the box tool in the animation window to reverse the clip.
    I think the Humanoid mirror option you are talking about is really something else specific to humanoid clips that flips left and rights on the character.