2D characters in mirrors

This script allows you to create the effect of 2D characters appearing reflected in mirrors - while respecting their facing direction. It works by controlling a second character that is updated each frame according to the original character's state.

To use it:


 * 1) Set up your character to use Sprites Unity Complex animation.
 * 2) Duplicate the character you wish to mirror, and keep both characters inside the scene file.
 * 3) Create a new C# file called MirrorCharacter and attach to the duplicated character.
 * 4) Assign the two characters in the Mirror Character component's Inspector
 * 5) Use Unity's Sprite Mask component to limit rendering of the mirror character to the boundary of the mirror.

MirrorCharacter.cs: