mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-20 15:20:07 +00:00
fix #175
This commit is contained in:
@@ -10,13 +10,17 @@ namespace YooAsset
|
|||||||
{
|
{
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
return StringUtility.Format("file:///{0}", path);
|
return StringUtility.Format("file:///{0}", path);
|
||||||
|
#elif UNITY_WEBGL
|
||||||
|
return path;
|
||||||
#elif UNITY_IPHONE
|
#elif UNITY_IPHONE
|
||||||
return StringUtility.Format("file://{0}", path);
|
return StringUtility.Format("file://{0}", path);
|
||||||
#elif UNITY_ANDROID
|
#elif UNITY_ANDROID
|
||||||
return path;
|
return path;
|
||||||
|
#elif UNITY_STANDALONE_OSX
|
||||||
|
return new System.Uri(path).ToString();
|
||||||
#elif UNITY_STANDALONE
|
#elif UNITY_STANDALONE
|
||||||
return StringUtility.Format("file:///{0}", path);
|
return StringUtility.Format("file:///{0}", path);
|
||||||
#elif UNITY_WEBGL
|
#else
|
||||||
return path;
|
return path;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user