见代码:
1 static void CreateAnim(string fbx, string target) 2 { 3 AnimationClip src = AssetDatabase.LoadAssetAtPath<AnimationClip>(fbx); 4 AnimationClip temp = new AnimationClip(); 5 EditorUtility.CopySerialized(src, temp); 6 CreateDirectory(target); 7 AssetDatabase.CreateAsset(temp, target); 8 }