BundleInfo Adds the InCloud method

BundleInfo增加资源包文件是否在云端的查询接口
pull/9/head
hevinci 2022-04-29 16:42:53 +08:00
parent ca7b42981b
commit f8036782e4
1 changed files with 16 additions and 0 deletions

View File

@ -103,6 +103,22 @@ namespace YooAsset
}
/// <summary>
/// 资源包是否有效
/// </summary>
public bool IsValid()
{
return _patchBundle != null;
}
/// <summary>
/// 资源包文件是否在云端
/// </summary>
public bool InCloud()
{
return LoadMode == ELoadMode.LoadFromRemote;
}
/// <summary>
/// 获取流文件夹的加载路径
/// </summary>