docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Property TableReference

    TableReference

    Provides a reference to the LocalizationTable. A table reference can be either the TableCollectionName of the table or the TableCollectionNameGuid.

    Declaration
    public TableReference TableReference { get; set; }
    Property Value
    Type Description
    TableReference
    Remarks

    Note: Changing this value triggers an update to any subscribers. See SetReference(TableReference, TableEntryReference) if you wish to change both the table and entry.

    Examples

    This example shows the 2 ways a reference can be set.

    var localizedString = new LocalizedString();
    
    // Table Reference can be set with the name of the table
    localizedString.TableReference = "My String Table";
    
    // Or the Table Collection Guid
    localizedString.TableReference = new System.Guid("6e79ded14bc9e0a4d9bf2b8aac246bfe");
    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)