From 54c4e8814563b12bb525fb1b50d4898a62630b67 Mon Sep 17 00:00:00 2001 From: zhangaotian <8474238@qq.com> Date: Fri, 19 Jul 2024 16:07:59 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90bug=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Forest/Assets/Scripts/Framework/Manager/BuildManager.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Forest/Assets/Scripts/Framework/Manager/BuildManager.cs b/Forest/Assets/Scripts/Framework/Manager/BuildManager.cs index 53db900..f72a027 100644 --- a/Forest/Assets/Scripts/Framework/Manager/BuildManager.cs +++ b/Forest/Assets/Scripts/Framework/Manager/BuildManager.cs @@ -65,7 +65,6 @@ namespace Framework.Manager this.Name = name; } - [JsonConstructor] public BuildNode() { } @@ -354,7 +353,9 @@ namespace Framework.Manager { try { - var fileEntries = Directory.GetFiles(iconsPath, "*.png"); + var path = iconsPath.Replace(Application.dataPath, "").Replace('\\', '/'); + DebugUtil.LogError("路径:{0}", path); + var fileEntries = Directory.GetFiles(path, "*.png"); foreach (var filePath in fileEntries) { var fileName = Path.GetFileName(filePath);