docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetLocalizedString

    GetLocalizedString()

    Provides a translated string from a StringTable with the TableReference and the translated string that matches TableEntryReference. Uses WaitForCompletion to force the loading to complete synchronously. Please note that WaitForCompletion is not supported on WebGL.

    Declaration
    public string GetLocalizedString()
    Returns
    Type Description
    string

    The localized string for the SelectedLocale or LocaleOverride if it is not null.

    GetLocalizedString(params object[])

    Provides a translated string from a StringTable with the TableReference and the translated string that matches TableEntryReference. Uses WaitForCompletion to force the loading to complete synchronously. Please note that WaitForCompletion is not supported on WebGL.

    Declaration
    public string GetLocalizedString(params object[] arguments)
    Parameters
    Type Name Description
    object[] arguments

    The arguments to pass into the Smart String formatter or String.Format.

    Returns
    Type Description
    string

    The localized string for the SelectedLocale or LocaleOverride if it is not null.

    GetLocalizedString(IList<object>)

    Provides a translated string from a StringTable with the TableReference and the translated string that matches TableEntryReference.

    Declaration
    public string GetLocalizedString(IList<object> arguments)
    Parameters
    Type Name Description
    IList<object> arguments

    The arguments to pass into the Smart String formatter or String.Format.

    Returns
    Type Description
    string

    The localized string for the SelectedLocale or LocaleOverride if it is not null.

    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)