This file contains 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
[InitializeOnLoad] | |
public static class BlenderInstallScript | |
{ | |
//change this to your own import script | |
private static string blenderScriptRepo = "https://github.com/builder-main/unity-blender-better-import.git"; | |
private static string blenderScripFileName = "Unity-BlenderToFBX.py"; | |
private static string blenderScriptInstallPath = @"Data\Tools"; | |
private static string backupSuffix = ".back"; | |
static BlenderInstallScript() |
This file contains 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
public static class AnimatorExtensions | |
{ | |
public static AnimatorParametersState SaveState(this Animator anim) | |
{ | |
List<AnimatorStateInfo> animStates = new List<AnimatorStateInfo>(); | |
for (int i = 0; i < anim.layerCount; i++) | |
{ | |
animStates.Add(anim.GetCurrentAnimatorStateInfo(i)); | |
} |