Class SharedTableCollectionMetadata | Localization | 0.9.0-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class SharedTableCollectionMetadata

    Shared Metadata is data that is associated to all tables that use the same SharedTableData, also known as an AssetTableCollection. Multiple table entries can be included in the SharedTableCollectionMetadata and The tables that use each table entry are recorded.

    Inheritance
    Object
    SharedTableCollectionMetadata
    Namespace: UnityEngine.Localization.Metadata
    Syntax
    [Serializable]
    public abstract class SharedTableCollectionMetadata : IMetadata, ISerializationCallbackReceiver

    Properties

    IsEmpty

    Are any table entries currently associated to this Metadata?

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

    Methods

    AddEntry(Int64, String)

    Add the table entry for a specific table to the shared Metadata.

    Declaration
    public void AddEntry(long keyId, string code)
    Parameters
    Type Name Description
    Int64 keyId

    The Id of the table entry.

    String code

    The table culture code.

    Contains(Int64)

    Is the table entry associated to this Metadata?

    Declaration
    public bool Contains(long keyId)
    Parameters
    Type Name Description
    Int64 keyId
    Returns
    Type Description
    Boolean

    Contains(Int64, String)

    Is the table entry and culture code associated to this Metadata?

    Declaration
    public bool Contains(long keyId, string code)
    Parameters
    Type Name Description
    Int64 keyId
    String code
    Returns
    Type Description
    Boolean

    OnAfterDeserialize()

    Converts the serializable list into a dictionary.

    Declaration
    public virtual void OnAfterDeserialize()
    Implements
    ISerializationCallbackReceiver.OnAfterDeserialize()

    OnBeforeSerialize()

    Converts the internal dictionary into a serializable list.

    Declaration
    public virtual void OnBeforeSerialize()
    Implements
    ISerializationCallbackReceiver.OnBeforeSerialize()

    RemoveEntry(Int64, String)

    Remove the table entry for a specific table from the shared Metadata.

    Declaration
    public void RemoveEntry(long keyId, string code)
    Parameters
    Type Name Description
    Int64 keyId
    String code
    Back to top
    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