Class MetadataCollection
Holds a collection of IMetadata that can be serialized.
Implements
Namespace: UnityEngine.Localization.Metadata
Assembly: Unity.Localization.dll
Syntax
[Serializable]
public class MetadataCollection : IMetadataCollection
Properties
Name | Description |
---|---|
HasData | Does the collection contain any Metadata? |
MetadataEntries | All Metadata entries contained in this collection. |
Methods
Name | Description |
---|---|
AddMetadata(IMetadata) | Add the Metadata to the collection. |
Contains(IMetadata) | Returns true if the collection contains the Metadata. |
GetMetadata<TObject>() | Returns the first Metadata of type TObject or null if one does not exist. |
GetMetadatas<TObject>() | Returns a list of all Metadata`s that are of type TObject. |
GetMetadatas<TObject>(IList<TObject>) | Populates list with all Metadata`s that are of type TObject. |
HasMetadata<TObject>() | Returns true if any metadata of type TObject contains this entry. |
RemoveMetadata(IMetadata) | Removes the Metadata if it is in the collection. |