From b334a4986bcf2b8a7bf95ed5f4bd6d4cc39eeb8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=86=A0=E5=B3=B0?= Date: Wed, 12 Mar 2025 10:39:44 +0800 Subject: [PATCH] fix #504 --- .../YooAsset/Runtime/DownloadSystem/DownloadSystemHelper.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Assets/YooAsset/Runtime/DownloadSystem/DownloadSystemHelper.cs b/Assets/YooAsset/Runtime/DownloadSystem/DownloadSystemHelper.cs index f5ccfa3e..8651975d 100644 --- a/Assets/YooAsset/Runtime/DownloadSystem/DownloadSystemHelper.cs +++ b/Assets/YooAsset/Runtime/DownloadSystem/DownloadSystemHelper.cs @@ -37,7 +37,9 @@ namespace YooAsset string url; // 获取对应平台的URL地址 -#if UNITY_EDITOR +#if UNITY_EDITOR_OSX + url = StringUtility.Format("file://{0}", path); +#elif UNITY_EDITOR url = StringUtility.Format("file:///{0}", path); #elif UNITY_WEBGL url = path;