docs.unity3d.com
    目次を表示する/隠す

    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.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)