From 45b016ae0f91eeafeeba89e7a352981ce635877a Mon Sep 17 00:00:00 2001 From: hevinci Date: Sat, 7 Oct 2023 18:56:30 +0800 Subject: [PATCH] fix #175 --- Assets/YooAsset/Runtime/CacheSystem/PersistentTools.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Assets/YooAsset/Runtime/CacheSystem/PersistentTools.cs b/Assets/YooAsset/Runtime/CacheSystem/PersistentTools.cs index a0c2fb6..f17127d 100644 --- a/Assets/YooAsset/Runtime/CacheSystem/PersistentTools.cs +++ b/Assets/YooAsset/Runtime/CacheSystem/PersistentTools.cs @@ -41,6 +41,8 @@ namespace YooAsset 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