docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct TableEntryReference

    Allows for referencing a table entry via key or key id.

    Implements
    ISerializationCallbackReceiver
    Namespace: UnityEngine.Localization.Tables
    Assembly: Unity.Localization.dll
    Syntax
    [Serializable]
    public struct TableEntryReference : ISerializationCallbackReceiver

    Properties

    Name Description
    Key

    The key name when ReferenceType is Name.

    KeyId

    The Key Id when ReferenceType is Id.

    ReferenceType

    The type of reference.

    Methods

    Name Description
    Equals(object)

    Compare the TableEntryReference to another TableEntryReference.

    Equals(TableEntryReference)

    Compare the TableEntryReference to another TableEntryReference.

    GetHashCode()

    Returns the hash code of Key or KeyId.

    ResolveKeyName(SharedTableData)

    Returns the key name. If ReferenceType is Name then Key will be returned. If ReferenceType is Id then sharedData will be used to extract the name.

    ToString(TableReference)

    Returns a string representation.

    Operators

    Name Description
    implicit operator TableEntryReference(long)

    Converts a key id into a reference.

    implicit operator TableEntryReference(string)

    Converts a string name into a reference.

    implicit operator long(TableEntryReference)

    Returns KeyId

    implicit operator string(TableEntryReference)

    Returns Key.

    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)