Skip to content

Tag

ClassAssetInventoryAssetInventory.Editor
public sealed class Tag

Persistent hierarchical tag definition with its display name, parent relationship, and optional color.

public static Color DefaultColor

Returns

UnityEngine.Color

public Tag()

public Tag(string name)

Creates a new tag definition with the supplied display name.

Parameters

Name Type
name System.String

public Color GetColor()

Returns the tag’s configured HTML color, or the supplied or default fallback when no valid color is stored.

Returns

UnityEngine.Color

public bool Equals(Tag other)

Parameters

Name Type
other AssetInventory.Tag

Returns

System.Boolean

public override string ToString()

Returns

System.String

[PrimaryKey]
[AutoIncrement]
public int Id { get; set; }

Returns

System.Int32

[Indexed]
[Collation("NOCASE")]
public string Name { get; set; }

Returns

System.String

public string Color { get; set; }

Returns

System.String

public bool FromAssetStore { get; set; }

Returns

System.Boolean

public string Hotkey { get; set; }

Returns

System.String

[Indexed]
public int? ParentId { get; set; }

Returns

System.Nullable{System.Int32}