docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FormatSmart

    FormatSmart(string, params object[])

    Formats the specified arguments using this string as a template.

    Declaration
    public static string FormatSmart(this string format, params object[] args)
    Parameters
    Type Name Description
    string format

    The template that defines how the arguments are formatted

    object[] args

    A list of arguments to be used in formatting

    Returns
    Type Description
    string

    FormatSmart(string, ref FormatCache, params object[])

    Formats the specified arguments using this string as a template. Caches the parsing results for increased performance.

    Declaration
    public static string FormatSmart(this string format, ref FormatCache cache, params object[] args)
    Parameters
    Type Name Description
    string format

    The template that defines how the arguments are formatted

    FormatCache cache

    Outputs an object that increases performance if the same format string is used repeatedly.

    object[] args

    A list of arguments to be used in formatting

    Returns
    Type Description
    string
    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)