Tag
public sealed class TagPersistent hierarchical tag definition with its display name, parent relationship, and optional color.
Fields
Section titled “Fields”
DefaultColor
Section titled “DefaultColor”public static Color DefaultColorReturns
UnityEngine.Color
Constructors
Section titled “Constructors”
public Tag()
Tag(string)
Section titled “Tag(string)”public Tag(string name)Creates a new tag definition with the supplied display name.
Parameters
| Name | Type |
|---|---|
name |
System.String |
Methods
Section titled “Methods”
GetColor()
Section titled “GetColor()”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
Equals(Tag)
Section titled “Equals(Tag)”public bool Equals(Tag other)Parameters
| Name | Type |
|---|---|
other |
AssetInventory.Tag |
Returns
System.Boolean
ToString()
Section titled “ToString()”public override string ToString()Returns
System.String
Properties
Section titled “Properties”
[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
FromAssetStore
Section titled “FromAssetStore”public bool FromAssetStore { get; set; }Returns
System.Boolean
Hotkey
Section titled “Hotkey”public string Hotkey { get; set; }Returns
System.String
ParentId
Section titled “ParentId”[Indexed]public int? ParentId { get; set; }Returns
System.Nullable{System.Int32}