offline play mode supports WebGL platform.

离线运行模式支持WEBGL平台。
This commit is contained in:
hevinci
2022-04-12 10:53:12 +08:00
parent 46467171ba
commit 9fbce6a726
14 changed files with 506 additions and 320 deletions

View File

@@ -61,7 +61,6 @@ namespace YooAsset
/// </summary>
public static string ConvertToWWWPath(string path)
{
// 注意WWW加载方式必须要在路径前面加file://
#if UNITY_EDITOR
return StringUtility.Format("file:///{0}", path);
#elif UNITY_IPHONE
@@ -70,6 +69,8 @@ namespace YooAsset
return path;
#elif UNITY_STANDALONE
return StringUtility.Format("file:///{0}", path);
#elif UNITY_WEBGL
return path;
#endif
}
@@ -203,7 +204,6 @@ namespace YooAsset
/// 获取沙盒内补丁清单文件的哈希值
/// 注意:如果沙盒内补丁清单文件不存在,返回空字符串
/// </summary>
/// <returns></returns>
public static string GetSandboxPatchManifestFileHash()
{
string filePath = PathHelper.MakePersistentLoadPath(YooAssetSettingsData.Setting.PatchManifestFileName);