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

Class PackageTags

标签集合

Assembly: YooAsset.dll​
View Source​
Declaration
public class PackageTags

Properties​

TagCount​

标签数量

View Source​
Declaration
public int TagCount { get; }

IsTagged​

是否包含分类标签

View Source​
Declaration
public bool IsTagged { get; }

Fields​

Empty​

空标签集合

View Source​
Declaration
public static readonly PackageTags Empty

Methods​

GetTag(int)​

获取指定索引的标签

View Source​
Declaration
public string GetTag(int index)
Returns​

System.String

Parameters​
TypeName
System.Int32index

HasTag(string)​

是否包含指定的单个标签

View Source​
Declaration
public bool HasTag(string tag)
Returns​

System.Boolean

Parameters​
TypeName
System.Stringtag

HasAnyTag(string[])​

是否包含指定标签数组中的任意一个

View Source​
Declaration
public bool HasAnyTag(string[] tags)
Returns​

System.Boolean

Parameters​
TypeName
System.String[]tags