docs.unity3d.com

Localization 1.5.1

Search Results for

    Show / Hide Table of Contents

    Default source

    The default source replicates the String.Format behavior and extracts an argument by the index.

    The default source examines the current selector. If the selector can be parsed as an integer and is a valid index (within the number of provided arguments), the default source extracts the argument at the selected index and no further selectors are considered.

    Example Smart String Arguments Result
    {0} {1} {2} [!code-cs] 1 2 3
    {1} {1} {2} {0} [!code-cs] 2 2 3 1
    Player {0} scored {1} points [!code-cs] Player Potato scored 155 points
    Player {0.Name} score {0.Points} [!code-cs] Player One Scored 100 points
    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)