From 9d4656a1f20c6fa368c298a762cfa5637de54aa3 Mon Sep 17 00:00:00 2001 From: hevinci Date: Thu, 9 Jun 2022 16:09:35 +0800 Subject: [PATCH] Update EditorHelper.cs --- Assets/YooAsset/Editor/EditorHelper.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Assets/YooAsset/Editor/EditorHelper.cs b/Assets/YooAsset/Editor/EditorHelper.cs index 6667a89..afe7d17 100644 --- a/Assets/YooAsset/Editor/EditorHelper.cs +++ b/Assets/YooAsset/Editor/EditorHelper.cs @@ -73,7 +73,14 @@ namespace YooAsset.Editor else { if (guids.Length != 1) + { + foreach (var guid in guids) + { + string path = AssetDatabase.GUIDToAssetPath(guid); + Debug.LogWarning($"Found multiple file : {path}"); + } throw new System.Exception($"Found multiple {settingType.Name} files !"); + } string filePath = AssetDatabase.GUIDToAssetPath(guids[0]); var setting = AssetDatabase.LoadAssetAtPath(filePath);