docs.unity3d.com

Localization 1.5.1

Search Results for

    Show / Hide Table of Contents

    Struct TableReference

    It is possible to reference a table via either the table collection name or the table collection name guid. The TableReference provides a flexible way to reference via either of these methods and also includes editor functionality.

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

    Properties

    Name Description
    ReferenceType

    The type of reference.

    TableCollectionName

    The table collection name when ReferenceType is Name. If the ReferenceType is not Name then an attempt will be made to extract the Table Collection Name, for debugging purposes, through the AssetDatabase(in Editor) or by checking the LocalizationSettings to see if the SharedTableData has been loaded by the LocalizedStringDatabase or LocalizedAssetDatabase, if the name can not be resolved then null will be returned.

    TableCollectionNameGuid

    The table collection name guid when ReferenceType is Guid.

    Methods

    Name Description
    Equals(object)

    Compare the TableReference to another TableReference.

    Equals(TableReference)

    Compare 2 TableReferences.

    GetHashCode()

    Returns the hash code of TableCollectionNameGuid or TableCollectionName.

    Operators

    Name Description
    implicit operator TableReference(Guid)

    Convert a table collection name guid into a TableReference.

    implicit operator TableReference(string)

    Convert a table collection name into a TableReference.

    implicit operator Guid(TableReference)

    Returns TableCollectionNameGuid.

    implicit operator string(TableReference)

    Returns TableCollectionName.

    In This Article
    • Properties
    • Methods
    • Operators
    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)