6
\$\begingroup\$

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?

\$\endgroup\$
1
  • \$\begingroup\$ This script sounds similar to that—the answer to this might be salvageable from it anyway. \$\endgroup\$ Commented Dec 14, 2014 at 22:05

2 Answers 2

1
\$\begingroup\$

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.

\$\endgroup\$
0
\$\begingroup\$

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.
\$\endgroup\$
2
  • \$\begingroup\$ 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? \$\endgroup\$ Commented Nov 4, 2014 at 21:41
  • \$\begingroup\$ Click and drag the keyframes on the "master" track - the track at the top that doesn't correspond to a specific property. \$\endgroup\$ Commented Nov 4, 2014 at 22:29

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.