| | |
| | | var importerPath = assetPath + Path.DirectorySeparatorChar + file.Name;
|
| | | var extersion = Path.GetExtension(file.FullName);
|
| | | var importer = AssetImporter.GetAtPath(importerPath);
|
| | | var hostfix = file.Name.Replace("Prefab_Secondary", "").Replace("Prefab_Weapon", "").Replace("Prefab_Wing", "").Replace("Prefab_Race", "").Replace("Prefab_Horse", "").Replace(".prefab", "");
|
| | | var hostfix = file.Name.Replace("Prefab_Secondary", "")
|
| | | .Replace("Prefab_Weapon", "")
|
| | | .Replace("Prefab_Wing", "")
|
| | | .Replace("Prefab_Race", "")
|
| | | .Replace("Prefab_Horse", "")
|
| | | .Replace("_UI", "")
|
| | | .Replace(".prefab", "")
|
| | | .Replace("Prefab_Hand", "");
|
| | |
|
| | | importer.assetBundleName = StringUtility.Contact("mob/prefab_race", hostfix);
|
| | | EditorUtility.SetDirty(importer);
|
| | | }
|