From 87315315aa0fa7d22374a882767bf72f5518bcfe Mon Sep 17 00:00:00 2001 From: Reina_Sakiria Date: Tue, 12 Sep 2023 14:58:27 +0900 Subject: [PATCH] Fix: #147 --- Runtime/AssetSaveHelper.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Runtime/AssetSaveHelper.cs b/Runtime/AssetSaveHelper.cs index 0b1103c5..2d94d8af 100644 --- a/Runtime/AssetSaveHelper.cs +++ b/Runtime/AssetSaveHelper.cs @@ -21,6 +21,10 @@ public static bool IsTemporary { ClearTemp(); } + else + { + SaveDirectoryCheck(); + } } } public const string SaveDirectory = "Assets/TexTransToolGenerates"; @@ -118,6 +122,7 @@ public static List LoadAssets() where T : UnityEngine.Object } private static void ClearTemp() { + SaveDirectoryCheck(); var tempPath = Path.Combine(SaveDirectory, TempDirName); foreach (var path in Directory.GetFiles(tempPath)) {