How to mirror flip animation curves in Unity?

I have a animation that moves my camera from left to right. Now I'd like to copy it with 'mirror' transformation so I can use it to move from right to left.

Is it possible to do it using script or purely in editor?

• This script sounds similar to that—the answer to this might be salvageable from it anyway. – Anko Dec 14 '14 at 22:05

When importing the animation there is a 'mirror animation' checkbox under the Animations Tab in the Inspector for that asset.

If you check that box and rename the animation to "myanimation_mirror" or whatever then you should have 2 mirrored animations.

2 Options I'm aware of.

1. Play the same animation but set it to -1 speed. It will play in reverse.

or

1. In the OS, copy the .anim file and rename it. Then, open the new animation in Unity and physically swap the keyframes.
• First option is not mirroring or flipping. It's playing the clip backwards. According to discussion here: stackoverflow.com/questions/26543197/… I'll need to stick to second option... Can you describe me how to swap keyframes painlessly please? – neciu Nov 4 '14 at 21:41
• Click and drag the keyframes on the "master" track - the track at the top that doesn't correspond to a specific property. – McAden Nov 4 '14 at 22:29