少年修仙传客户端基础资源
liuxue
2021-07-27 4ec507a39521e735cef3b8c510fffc88e06c9a1f
Assets/Editor/Tool/UpdateAssetBundleName.cs
@@ -522,10 +522,13 @@
            var relativeDirectory = directoryName.Replace(amendRootPath, "");
            var importerPath = assetPath + relativeDirectory + Path.DirectorySeparatorChar + file.Name;
            if (file.Name != ".DS_Store")
            {
            var importer = AssetImporter.GetAtPath(importerPath);
            importer.assetBundleName = "builtin/" + relativeDirectory.ToLower();
            // EditorUtility.SetDirty(importer);
        }
        }
        DebugEx.Log("BuiltIn资源包名更新完成!");
        // AssetDatabase.SaveAssets();
        // AssetDatabase.Refresh();