docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MetadataCollection

    Holds a collection of IMetadata that can be serialized.

    Inheritance
    object
    MetadataCollection
    Implements
    IMetadataCollection
    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)