docs.unity3d.com
    Show / Hide Table of Contents

    Namespace UnityEngine.Localization.SmartFormat.Utilities

    Classes

    CommonLanguagesTimeTextInfo

    FormatDelegate

    This class wraps a delegate, allowing it to be used as a parameter to any string-formatting method (such as ). For example:

     var textWithLink = String.Format("Please click on {0:this link}.", new FormatDelegate((text) => Html.ActionLink(text, "SomeAction"));

    PluralRules

    Assigns the ISO language code to a pluralization rule.

    TimeSpanUtility

    TimeTextInfo

    Supplies the localized text used for TimeSpan formatting.

    TupleExtensions

    Extensions for s.

    Enums

    TimeSpanFormatOptions

    Determines all options for time formatting.

    This one value actually contains 4 settings:

    Abbreviate / AbbreviateOff

    LessThan / LessThanOff

    Truncate Auto / Shortest / Fill / Full

    Range MilliSeconds / Seconds / Minutes / Hours / Days / Weeks (Min / Max)

    Delegates

    PluralRules.PluralRuleDelegate

    This delegate determines which singular or plural word should be chosen for the given quantity. This allows each language to define its own behavior for singular or plural words.

    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