Class LocalizedReference | Localization | 0.8.1-preview
docs.unity.cn
    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 © 2020 Unity Technologies
    Generated by DocFX
    on Wednesday, August 19, 2020