docs.unity3d.com
    Show / Hide Table of Contents

    Class MetadataCollection

    Holds a collection of IMetadata that can be serialized.

    Inheritance
    Object
    MetadataCollection
    Namespace: UnityEngine.Localization.Metadata
    Syntax
    public class MetadataCollection : object, IMetadataCollection

    Properties

    HasData

    Does the collection contain any Metadata?

    Declaration
    public bool HasData { get; }
    Property Value
    Type Description
    Boolean

    MetadataEntries

    Declaration
    public IList<IMetadata> MetadataEntries { get; }
    Property Value
    Type Description
    IList<IMetadata>
    Implements
    IMetadataCollection.MetadataEntries

    Methods

    AddMetadata(IMetadata)

    Declaration
    public void AddMetadata(IMetadata md)
    Parameters
    Type Name Description
    IMetadata md
    Implements
    IMetadataCollection.AddMetadata(IMetadata)

    Contains(IMetadata)

    Declaration
    public bool Contains(IMetadata md)
    Parameters
    Type Name Description
    IMetadata md
    Returns
    Type Description
    Boolean
    Implements
    IMetadataCollection.Contains(IMetadata)

    GetMetadata<TObject>()

    Declaration
    public TObject GetMetadata<TObject>()
        where TObject : IMetadata
    Returns
    Type Description
    TObject
    Type Parameters
    Name Description
    TObject
    Implements
    IMetadataCollection.GetMetadata<TObject>()

    GetMetadatas<TObject>()

    Declaration
    public IList<TObject> GetMetadatas<TObject>()
        where TObject : IMetadata
    Returns
    Type Description
    IList<TObject>
    Type Parameters
    Name Description
    TObject
    Implements
    IMetadataCollection.GetMetadatas<TObject>()

    GetMetadatas<TObject>(IList<TObject>)

    Declaration
    public void GetMetadatas<TObject>(IList<TObject> foundItems)
        where TObject : IMetadata
    Parameters
    Type Name Description
    IList<TObject> foundItems

    List that will be populated with the metadata that was found.

    Type Parameters
    Name Description
    TObject
    Implements
    IMetadataCollection.GetMetadatas<TObject>(IList<TObject>)

    HasMetadata<TObject>()

    Returns true if any metadata of type TObject contains this entry.

    Declaration
    public bool HasMetadata<TObject>()
        where TObject : IMetadata
    Returns
    Type Description
    Boolean
    Type Parameters
    Name Description
    TObject

    RemoveMetadata(IMetadata)

    Declaration
    public bool RemoveMetadata(IMetadata md)
    Parameters
    Type Name Description
    IMetadata md
    Returns
    Type Description
    Boolean
    Implements
    IMetadataCollection.RemoveMetadata(IMetadata)
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023