Files
YooAsset/Assets/YooAsset/Runtime/BundleCache/Operations/Common/LoadLocalAssetBundleOptions.cs
2026-05-21 18:43:22 +08:00

39 lines
983 B
C#

namespace YooAsset
{
/// <summary>
/// 加载 AssetBundle 的操作选项
/// </summary>
internal readonly struct LoadLocalAssetBundleOptions
{
/// <summary>
/// 文件缓存名称
/// </summary>
public string CacheName { get; }
/// <summary>
/// 资源包描述
/// </summary>
public PackageBundle Bundle { get; }
/// <summary>
/// 文件加载路径
/// </summary>
public string FilePath { get; }
/// <summary>
/// AssetBundle 解密器
/// </summary>
public IBundleDecryptor AssetBundleDecryptor { get; }
public LoadLocalAssetBundleOptions(string cacheName, PackageBundle bundle, string filePath, IBundleDecryptor assetBundleDecryptor)
{
CacheName = cacheName;
Bundle = bundle;
FilePath = filePath;
AssetBundleDecryptor = assetBundleDecryptor;
}
}
}