docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetValueAsString

    GetValueAsString(LocaleIdentifier)

    Returns the value for the LocaleIdentifier as a string representation.

    Declaration
    public string GetValueAsString(LocaleIdentifier localeIdentifier)
    Parameters
    Type Name Description
    LocaleIdentifier localeIdentifier

    The LocaleIdentifier whose variant should be returned.

    Returns
    Type Description
    string

    The variants value a string or null if an override does not exist for the LocaleIdentifier.

    Implements
    IStringProperty.GetValueAsString(LocaleIdentifier)

    GetValueAsString(LocaleIdentifier, LocaleIdentifier)

    Returns the value for the LocaleIdentifier as a string representation, uses the fallback if a variant does not exist.

    Declaration
    public string GetValueAsString(LocaleIdentifier localeIdentifier, LocaleIdentifier fallback)
    Parameters
    Type Name Description
    LocaleIdentifier localeIdentifier

    The LocaleIdentifier whose variant should be returned.

    LocaleIdentifier fallback

    If no variant exists for the LocaleIdentifier then the fallback will be used.

    Returns
    Type Description
    string

    The variant or fallback value a string or null if an override could not be found.

    Implements
    IStringProperty.GetValueAsString(LocaleIdentifier, LocaleIdentifier)
    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)