Class TagCatalogAsset
Stores and provides TagAsset.
Inherited Members
Namespace: UnityEngine.GameFoundation.DefaultCatalog
Syntax
public sealed class TagCatalogAsset : ScriptableObject, ISerializationCallbackReceiver
Properties
catalogAsset
A reference to the database owning this catalog.
Declaration
public CatalogAsset catalogAsset { get; }
Property Value
Type | Description |
---|---|
CatalogAsset |
Methods
ContainsTag(String)
Tells whether or not a TagAsset with the given
id
exists in this catalog.
Declaration
public bool ContainsTag(string id)
Parameters
Type | Name | Description |
---|---|---|
String | id | The identifier of the TagAsset to find. |
Returns
Type | Description |
---|---|
Boolean |
|
Exceptions
Type | Condition |
---|---|
ArgumentException | If the |
FindTag(String)
Returns specified TagAsset by its id
.
Declaration
public TagAsset FindTag(string id)
Parameters
Type | Name | Description |
---|---|---|
String | id | The identifier of the TagAsset to find. |
Returns
Type | Description |
---|---|
TagAsset | If found, it returns the requested TagAsset, otherwise |
Exceptions
Type | Condition |
---|---|
ArgumentException | If the |
GetTags(ICollection<TagAsset>, Boolean)
Fills in the given target
collection with all the TagAsset of this
catalog.
Declaration
public int GetTags(ICollection<TagAsset> target = null, bool clearTarget = true)
Parameters
Type | Name | Description |
---|---|---|
ICollection<TagAsset> | target | The target container of all the TagAsset instances. |
Boolean | clearTarget | If |
Returns
Type | Description |
---|---|
Int32 | The number of TagAsset instances of this catalog. |
Explicit Interface Implementations
ISerializationCallbackReceiver.OnAfterDeserialize()
Links the tag to this catalog.
Declaration
void ISerializationCallbackReceiver.OnAfterDeserialize()
Implements
ISerializationCallbackReceiver.OnBeforeSerialize()
Do thing. Only OnAfterDeserialize is necessry.
Declaration
void ISerializationCallbackReceiver.OnBeforeSerialize()