见代码:
static void CreateAnim(string fbx, string target)
{
AnimationClip src = AssetDatabase.LoadAssetAtPath<AnimationClip>(fbx);
AnimationClip temp = new AnimationClip();
EditorUtility.CopySerialized(src, temp);
CreateDirectory(target);
AssetDatabase.CreateAsset(temp, target);
}