From 31c09d53bb69e840f63040ba753955ab699acaf6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BD=95=E5=86=A0=E5=B3=B0?= <33317070@qq.com>
Date: Wed, 3 Jun 2026 18:01:18 +0800
Subject: [PATCH] fix #751
---
Assets/YooAsset/Runtime/Settings/YooAssetConfiguration.cs | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/Assets/YooAsset/Runtime/Settings/YooAssetConfiguration.cs b/Assets/YooAsset/Runtime/Settings/YooAssetConfiguration.cs
index 32b82796..ac64c32c 100644
--- a/Assets/YooAsset/Runtime/Settings/YooAssetConfiguration.cs
+++ b/Assets/YooAsset/Runtime/Settings/YooAssetConfiguration.cs
@@ -161,17 +161,18 @@ namespace YooAsset
/// 缓存文件根目录的绝对路径
internal static string GetEditorCacheRoot()
{
- // 注意:为了方便调试查看,编辑器下把存储目录放到项目根目录下。
+ // 注意:为了方便调试查看,编辑器下把存储目录放到项目的 Library 目录下。
string projectPath = Path.GetDirectoryName(Application.dataPath);
if (string.IsNullOrEmpty(projectPath))
throw new InvalidOperationException("Could not determine project root path from Application.dataPath.");
projectPath = PathUtility.NormalizePath(projectPath);
+ string libraryPath = PathUtility.Combine(projectPath, "Library");
var settings = GetSettings();
if (string.IsNullOrEmpty(settings.YooFolderName))
- return projectPath;
+ return libraryPath;
else
- return PathUtility.Combine(projectPath, settings.YooFolderName);
+ return PathUtility.Combine(libraryPath, settings.YooFolderName);
}
///