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

    Class LocalizedReference

    A Localized Reference allows for referencing an entry inside of a specific LocalizationTable.

    Inheritance
    Object
    LocalizedReference
    LocalizedAsset<TObject>
    LocalizedString
    Namespace: UnityEngine.Localization
    Syntax
    [Serializable]
    public abstract class LocalizedReference

    Properties

    IsEmpty

    Does both TableReference and TableEntryReference contain valid references or is one of them Empty?

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

    TableEntryReference

    A reference to the entry inside of TableReference. The entry reference can either be the entry id or the entry name.

    Declaration
    public TableEntryReference TableEntryReference { get; set; }
    Property Value
    Type Description
    TableEntryReference

    TableReference

    A reference to the LocalizationTable. A table reference can be either the name of the table or the table collection name Guid.

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

    Methods

    ForceUpdate()

    Called when a value has been changed and an update may be required.

    Declaration
    protected abstract void ForceUpdate()

    SetReference(TableReference, TableEntryReference)

    Sets both the TableReference and TableEntryReference

    Declaration
    public void SetReference(TableReference table, TableEntryReference entry)
    Parameters
    Type Name Description
    TableReference table
    TableEntryReference entry

    ToString()

    Returns a string representation including the TableReference and TableEntryReference

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()
    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