From dc119b26c7f46c592b224c449240e63e526b5449 Mon Sep 17 00:00:00 2001 From: hevinci Date: Fri, 19 Jul 2024 12:02:43 +0800 Subject: [PATCH] fix #321 --- .../DefaultBuildinFileSystemBuild.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/YooAsset/Runtime/FileSystem/DefaultBuildinFileSystem/DefaultBuildinFileSystemBuild.cs b/Assets/YooAsset/Runtime/FileSystem/DefaultBuildinFileSystem/DefaultBuildinFileSystemBuild.cs index 9f6793f..367148c 100644 --- a/Assets/YooAsset/Runtime/FileSystem/DefaultBuildinFileSystem/DefaultBuildinFileSystemBuild.cs +++ b/Assets/YooAsset/Runtime/FileSystem/DefaultBuildinFileSystem/DefaultBuildinFileSystemBuild.cs @@ -35,7 +35,7 @@ namespace YooAsset CreateBuildinCatalogFile(subDirectory.Name, subDirectory.FullName); } } - + /// /// 生成包裹的内置资源目录文件 /// @@ -109,8 +109,8 @@ namespace YooAsset FileUtility.CreateFileDirectory(saveFilePath); UnityEditor.AssetDatabase.CreateAsset(buildinFileCatalog, saveFilePath); - UnityEditor.AssetDatabase.SaveAssets(); - UnityEditor.AssetDatabase.Refresh(); + UnityEditor.EditorUtility.SetDirty(buildinFileCatalog); + UnityEditor.AssetDatabase.SaveAssetIfDirty(buildinFileCatalog); Debug.Log($"Succeed to save buildin file catalog : {saveFilePath}"); } }