docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method EvaluateString

    EvaluateString(string)

    Evaluates all tokens deliminated by '{' and '}' in a string and evaluates them with the EvaluateProperty method.

    Declaration
    public static string EvaluateString(string input)
    Parameters
    Type Name Description
    string input

    The input string.

    Returns
    Type Description
    string

    The evaluated string after resolving all tokens.

    EvaluateString(string, char, char, Func<string, string>)

    Evaluates all tokens deliminated by the specified delimiters in a string and evaluates them with the supplied method.

    Declaration
    public static string EvaluateString(string inputString, char startDelimiter, char endDelimiter, Func<string, string> varFunc)
    Parameters
    Type Name Description
    string inputString

    The string to evaluate.

    char startDelimiter

    The start token delimiter.

    char endDelimiter

    The end token delimiter.

    Func<string, string> varFunc

    Func that has a single string parameter and returns a string.

    Returns
    Type Description
    string

    The evaluated string.

    In This Article
    Back to top
    Copyright © 2025 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)