//assetPath: 资源文件相对于项目文件夹路径
//clipAnimations:自定义的动画剪辑
ModelImporter modelImporter=(ModelImporter)AssetImporter.GetAtPath(assetPath);
modelImporter.clipAnimations=clipAnimations;
EditorUtility.SetDirty(modelImporter);
modelImporter.SaveAndReimport();
unity 自定义AssetImporter导入指定资源
最新推荐文章于 2025-06-08 03:04:41 发布