This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| NOTE: to use this Unity Editor utility, make a folder (Create > Folder) inside of Unity, and name it "Editor", | |
| in that folder, make a C# script (Create > C# Script) and preferably name it (MirrorAnimationEditor), | |
| open the C# script file in a File Editor (such as Note Pad) to paste the below C# code inside of it, | |
| save the file, then head back to Unity; wait a sec or 2 until Unity finishes compiling the script, | |
| once Unity is done compiling; you should be able to see a Button called "Mirror Animation" on the | |
| Inspector Window when you select an Animation Clip in the Project Window, clicking the button will make a | |
| new Animation Clip with the same name and path as the one inspected suffixed with "Mirrored", this newly | |
| created Animation Clip will reflect all properties of the original, with the exception where humanoid rig | |
| properties that animate a given side of the avatar will now oppose that side to mirror the Animation Clip. |
NewerOlder