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)) {