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
| Type | Name |
|---|---|
System.Int32 | index |
HasTag(string)
是否包含指定的单个标签
View Source
Declaration
public bool HasTag(string tag)
Returns
System.Boolean
Parameters
| Type | Name |
|---|---|
System.String | tag |
HasAnyTag(string[])
是否包含指定标签数组中的任意一个
View Source
Declaration
public bool HasAnyTag(string[] tags)
Returns
System.Boolean
Parameters
| Type | Name |
|---|---|
System.String[] | tags |