kingBook

导航

unity 自定义AssetImporter导入指定资源

//assetPath: 资源文件相对于项目文件夹路径
//clipAnimations:自定义的动画剪辑
ModelImporter modelImporter=(ModelImporter)AssetImporter.GetAtPath(assetPath);
modelImporter.clipAnimations=clipAnimations;
EditorUtility.SetDirty(modelImporter);
modelImporter.SaveAndReimport();

posted on 2020-05-07 11:20  kingBook  阅读(1498)  评论(0编辑  收藏  举报