From 666fe298667beccfc3fe03375cfb30dc21b56f2d Mon Sep 17 00:00:00 2001 From: Takumi Shimomura Date: Thu, 11 Sep 2025 14:57:59 +0900 Subject: [PATCH] =?UTF-8?q?=E7=84=A1=E9=99=90=E3=82=A4=E3=83=B3=E3=83=9D?= =?UTF-8?q?=E3=83=BC=E3=83=88=E3=83=AB=E3=83=BC=E3=83=97=E3=81=AE=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Tools/Importer/SmartAddresserAssetPostProcessor.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Assets/SmartAddresser/Editor/Core/Tools/Importer/SmartAddresserAssetPostProcessor.cs b/Assets/SmartAddresser/Editor/Core/Tools/Importer/SmartAddresserAssetPostProcessor.cs index e17579b..0720abd 100644 --- a/Assets/SmartAddresser/Editor/Core/Tools/Importer/SmartAddresserAssetPostProcessor.cs +++ b/Assets/SmartAddresser/Editor/Core/Tools/Importer/SmartAddresserAssetPostProcessor.cs @@ -20,6 +20,7 @@ string[] movedFromAssetPaths ) { var addressableSettings = AddressableAssetSettingsDefaultObject.Settings; + var beforeHash = addressableSettings.currentHash; // Check this because AddressableAssetSettingsDefaultObject.Settings may be null at this point when the Library folder is deleted. if (addressableSettings == null) @@ -57,16 +58,19 @@ string[] movedFromAssetPaths foreach (var importedAssetPath in importedAssetPaths) { var guid = AssetDatabase.AssetPathToGUID(importedAssetPath); - applyService.Apply(guid, false, true); + applyService.Apply(guid, false, false); } foreach (var movedAssetPath in movedAssetPaths) { var guid = AssetDatabase.AssetPathToGUID(movedAssetPath); - applyService.Apply(guid, false, true); + applyService.Apply(guid, false, false); } - applyService.InvokeBatchModificationEvent(); + if (beforeHash != addressableSettings.currentHash) + { + applyService.InvokeBatchModificationEvent(); + } } private static bool ShouldProcess(