docs.unity3d.com
    目次を表示する/隠す

    Class MetadataCollection

    Holds a collection of IMetadata that can be serialized.

    Inheritance
    Object
    MetadataCollection
    Namespace: UnityEngine.Localization.Metadata
    Syntax
    [Serializable]
    public class MetadataCollection : 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)
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)