diff --git a/Assets/YooAsset/Runtime/PatchSystem/BundleInfo.cs b/Assets/YooAsset/Runtime/PatchSystem/BundleInfo.cs index 8b5360b..82de44c 100644 --- a/Assets/YooAsset/Runtime/PatchSystem/BundleInfo.cs +++ b/Assets/YooAsset/Runtime/PatchSystem/BundleInfo.cs @@ -103,6 +103,22 @@ namespace YooAsset } + /// + /// 资源包是否有效 + /// + public bool IsValid() + { + return _patchBundle != null; + } + + /// + /// 资源包文件是否在云端 + /// + public bool InCloud() + { + return LoadMode == ELoadMode.LoadFromRemote; + } + /// /// 获取流文件夹的加载路径 ///