Skip to main content
Version: 2.1.x

Class BuildAssetInfo

Assembly: YooAsset.Editor.dll
View Source
Declaration
public class BuildAssetInfo

Properties

CollectorType

收集器类型

View Source
Declaration
public ECollectorType CollectorType { get; }

BundleName

资源包完整名称

View Source
Declaration
public string BundleName { get; }

Address

可寻址地址

View Source
Declaration
public string Address { get; }

AssetPath

资源路径

View Source
Declaration
public string AssetPath { get; }

IsRawAsset

是否为原生资源

View Source
Declaration
public bool IsRawAsset { get; }

IsShaderAsset

是否为着色器资源

View Source
Declaration
public bool IsShaderAsset { get; }

AllDependAssetInfos

依赖的所有资源 注意:包括零依赖资源和冗余资源(资源包名无效)

View Source
Declaration
public List<BuildAssetInfo> AllDependAssetInfos { get; }

Fields

AssetTags

资源的分类标签

View Source
Declaration
public readonly List<string> AssetTags

BundleTags

资源包的分类标签

View Source
Declaration
public readonly List<string> BundleTags

Methods

SetAllDependAssetInfos(List<BuildAssetInfo>)

设置所有依赖的资源

View Source
Declaration
public void SetAllDependAssetInfos(List<BuildAssetInfo> dependAssetInfos)
Parameters
TypeName
System.Collections.Generic.List<YooAsset.Editor.BuildAssetInfo>dependAssetInfos

AddAssetTags(List<string>)

添加资源的分类标签 说明:原始定义的资源分类标签

View Source
Declaration
public void AddAssetTags(List<string> tags)
Parameters
TypeName
System.Collections.Generic.List<System.String>tags

AddBundleTags(List<string>)

添加资源包的分类标签 说明:传染算法统计到的分类标签

View Source
Declaration
public void AddBundleTags(List<string> tags)
Parameters
TypeName
System.Collections.Generic.List<System.String>tags

HasBundleName()

资源包名是否存在

View Source
Declaration
public bool HasBundleName()
Returns

System.Boolean

AddReferenceBundleName(string)

添加关联的资源包名称

View Source
Declaration
public void AddReferenceBundleName(string bundleName)
Parameters
TypeName
System.StringbundleName

CalculateShareBundleName(IShareAssetPackRule, bool, string, string)

计算共享资源包的完整包名

View Source
Declaration
public void CalculateShareBundleName(IShareAssetPackRule packRule, bool uniqueBundleName, string packageName, string shadersBundleName)
Parameters
TypeName
YooAsset.Editor.IShareAssetPackRulepackRule
System.BooleanuniqueBundleName
System.StringpackageName
System.StringshadersBundleName