跳到主要内容
版本:2.3.x

Class BuildBundleInfo

Assembly: YooAsset.Editor.dll
Declaration
public class BuildBundleInfo

Properties

PackageUnityHash

Unity引擎生成的哈希值(构建内容的哈希值)

Declaration
public string PackageUnityHash { get; set; }

PackageUnityCRC

Unity引擎生成的CRC

Declaration
public uint PackageUnityCRC { get; set; }

PackageFileHash

文件哈希值

Declaration
public string PackageFileHash { get; set; }

PackageFileCRC

文件哈希值

Declaration
public string PackageFileCRC { get; set; }

PackageFileSize

文件哈希值

Declaration
public long PackageFileSize { get; set; }

BuildOutputFilePath

构建输出的文件路径

Declaration
public string BuildOutputFilePath { get; set; }

PackageSourceFilePath

补丁包的源文件路径

Declaration
public string PackageSourceFilePath { get; set; }

PackageDestFilePath

补丁包的目标文件路径

Declaration
public string PackageDestFilePath { get; set; }

EncryptedFilePath

加密生成文件的路径 注意:如果未加密该路径为空

Declaration
public string EncryptedFilePath { get; set; }

BundleName

资源包名称

Declaration
public string BundleName { get; }

Encrypted

加密文件

Declaration
public bool Encrypted { get; set; }

Fields

AllPackAssets

参与构建的资源列表 注意:不包含零依赖资源和冗余资源

Declaration
public readonly List<BuildAssetInfo> AllPackAssets

Methods

PackAsset(BuildAssetInfo)

添加一个打包资源

Declaration
public void PackAsset(BuildAssetInfo buildAsset)
Parameters
TypeName
YooAsset.Editor.BuildAssetInfobuildAsset

IsContainsPackAsset(string)

是否包含指定资源

Declaration
public bool IsContainsPackAsset(string assetPath)
Returns

System.Boolean

Parameters
TypeName
System.StringassetPath

GetAllPackAssetPaths()

获取构建的资源路径列表

Declaration
public string[] GetAllPackAssetPaths()
Returns

System.String[]

GetPackAssetInfo(string)

获取构建的主资源信息

Declaration
public BuildAssetInfo GetPackAssetInfo(string assetPath)
Returns

YooAsset.Editor.BuildAssetInfo

Parameters
TypeName
System.StringassetPath

GetBundleContents()

获取资源包内部所有资产

Declaration
public List<AssetInfo> GetBundleContents()
Returns

System.Collections.Generic.List<YooAsset.Editor.AssetInfo>

CreatePipelineBuild()

创建AssetBundleBuild类

Declaration
public AssetBundleBuild CreatePipelineBuild()
Returns

UnityEditor.AssetBundleBuild

GetAllManifestAssetInfos()

获取所有写入补丁清单的资源

Declaration
public BuildAssetInfo[] GetAllManifestAssetInfos()
Returns

YooAsset.Editor.BuildAssetInfo[]