| | |
| | | var relativeDirectory = directoryName.Replace(amendRootPath, "");
|
| | |
|
| | | var importerPath = assetPath + relativeDirectory + Path.DirectorySeparatorChar + file.Name;
|
| | | var importer = AssetImporter.GetAtPath(importerPath);
|
| | | importer.assetBundleName = "builtin/" + relativeDirectory.ToLower();
|
| | | // EditorUtility.SetDirty(importer);
|
| | | if (file.Name != ".DS_Store")
|
| | | {
|
| | | var importer = AssetImporter.GetAtPath(importerPath);
|
| | | importer.assetBundleName = "builtin/" + relativeDirectory.ToLower();
|
| | | // EditorUtility.SetDirty(importer);
|
| | | }
|
| | | }
|
| | | DebugEx.Log("BuiltIn资源包名更新完成!");
|
| | | // AssetDatabase.SaveAssets();
|