From ce7aefb744f9cee8f2fcd43b8eeaa4df80fa8567 Mon Sep 17 00:00:00 2001 From: hevinci <hevinci@hotmail.com> Date: Sat, 7 Oct 2023 18:51:52 +0800 Subject: [PATCH] fix #175 --- Assets/YooAsset/Runtime/CacheSystem/PersistentHelper.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/YooAsset/Runtime/CacheSystem/PersistentHelper.cs b/Assets/YooAsset/Runtime/CacheSystem/PersistentHelper.cs index 9569d96..8b6cbc1 100644 --- a/Assets/YooAsset/Runtime/CacheSystem/PersistentHelper.cs +++ b/Assets/YooAsset/Runtime/CacheSystem/PersistentHelper.cs @@ -10,13 +10,17 @@ namespace YooAsset { #if UNITY_EDITOR return StringUtility.Format("file:///{0}", path); +#elif UNITY_WEBGL + return path; #elif UNITY_IPHONE return StringUtility.Format("file://{0}", path); #elif UNITY_ANDROID return path; +#elif UNITY_STANDALONE_OSX + return new System.Uri(path).ToString(); #elif UNITY_STANDALONE return StringUtility.Format("file:///{0}", path); -#elif UNITY_WEBGL +#else return path; #endif }