{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method SetText | TextMeshPro | 3.0.1
docs.unity3d.com
"{0}" の検索結果

    目次を表示する/隠す

    Method SetText

    SetText(string, bool)

    Declaration
    public void SetText(string text, bool syncTextInputBox = true)
    Parameters
    Type Name Description
    string text
    bool syncTextInputBox

    SetText(string, float)

    Formatted string containing a pattern and a value representing the text to be rendered.

    Ex. TMP_Text.SetText("A = {0}, B = {1:00}, C = {2:000.0}", 10.75f, 10.75f, 10.75f);

    Results "A = 10.75, B = 11, C = 010.8."

    Declaration
    public void SetText(string text, float arg0)
    Parameters
    Type Name Description
    string text

    String containing the pattern.

    float arg0

    First float value.

    SetText(string, float, float)

    Formatted string containing a pattern and a value representing the text to be rendered.

    Ex. TMP_Text.SetText("A = {0}, B = {1:00}, C = {2:000.0}", 10.75f, 10.75f, 10.75f);

    Results "A = 10.75, B = 11, C = 010.8."

    Declaration
    public void SetText(string text, float arg0, float arg1)
    Parameters
    Type Name Description
    string text

    String containing the pattern.

    float arg0

    First float value.

    float arg1

    Second float value.

    SetText(string, float, float, float)

    Formatted string containing a pattern and a value representing the text to be rendered.

    Ex. TMP_Text.SetText("A = {0}, B = {1:00}, C = {2:000.0}", 10.75f, 10.75f, 10.75f);

    Results "A = 10.75, B = 11, C = 010.8."

    Declaration
    public void SetText(string text, float arg0, float arg1, float arg2)
    Parameters
    Type Name Description
    string text

    String containing the pattern.

    float arg0

    First float value.

    float arg1

    Second float value.

    float arg2

    Third float value.

    SetText(string, float, float, float, float)

    Formatted string containing a pattern and a value representing the text to be rendered.

    Ex. TMP_Text.SetText("A = {0}, B = {1:00}, C = {2:000.0}", 10.75f, 10.75f, 10.75f);

    Results "A = 10.75, B = 11, C = 010.8."

    Declaration
    public void SetText(string text, float arg0, float arg1, float arg2, float arg3)
    Parameters
    Type Name Description
    string text

    String containing the pattern.

    float arg0

    First float value.

    float arg1

    Second float value.

    float arg2

    Third float value.

    float arg3

    Forth float value.

    SetText(string, float, float, float, float, float)

    Formatted string containing a pattern and a value representing the text to be rendered.

    Ex. TMP_Text.SetText("A = {0}, B = {1:00}, C = {2:000.0}", 10.75f, 10.75f, 10.75f);

    Results "A = 10.75, B = 11, C = 010.8."

    Declaration
    public void SetText(string text, float arg0, float arg1, float arg2, float arg3, float arg4)
    Parameters
    Type Name Description
    string text

    String containing the pattern.

    float arg0

    First float value.

    float arg1

    Second float value.

    float arg2

    Third float value.

    float arg3

    Forth float value.

    float arg4

    Fifth float value.

    SetText(string, float, float, float, float, float, float)

    Formatted string containing a pattern and a value representing the text to be rendered.

    Ex. TMP_Text.SetText("A = {0}, B = {1:00}, C = {2:000.0}", 10.75f, 10.75f, 10.75f);

    Results "A = 10.75, B = 11, C = 010.8."

    Declaration
    public void SetText(string text, float arg0, float arg1, float arg2, float arg3, float arg4, float arg5)
    Parameters
    Type Name Description
    string text

    String containing the pattern.

    float arg0

    First float value.

    float arg1

    Second float value.

    float arg2

    Third float value.

    float arg3

    Forth float value.

    float arg4

    Fifth float value.

    float arg5

    Sixth float value.

    SetText(string, float, float, float, float, float, float, float)

    Formatted string containing a pattern and a value representing the text to be rendered.

    Ex. TMP_Text.SetText("A = {0}, B = {1:00}, C = {2:000.0}", 10.75f, 10.75f, 10.75f);

    Results "A = 10.75, B = 11, C = 010.8."

    Declaration
    public void SetText(string text, float arg0, float arg1, float arg2, float arg3, float arg4, float arg5, float arg6)
    Parameters
    Type Name Description
    string text

    String containing the pattern.

    float arg0

    First float value.

    float arg1

    Second float value.

    float arg2

    Third float value.

    float arg3

    Forth float value.

    float arg4

    Fifth float value.

    float arg5

    Sixth float value.

    float arg6

    Seventh float value.

    SetText(string, float, float, float, float, float, float, float, float)

    Formatted string containing a pattern and a value representing the text to be rendered.

    Ex. TMP_Text.SetText("A = {0}, B = {1:00}, C = {2:000.0}", 10.75f, 10.75f, 10.75f);

    Results "A = 10.75, B = 11, C = 010.8."

    Declaration
    public void SetText(string text, float arg0, float arg1, float arg2, float arg3, float arg4, float arg5, float arg6, float arg7)
    Parameters
    Type Name Description
    string text

    String containing the pattern.

    float arg0

    First float value.

    float arg1

    Second float value.

    float arg2

    Third float value.

    float arg3

    Forth float value.

    float arg4

    Fifth float value.

    float arg5

    Sixth float value.

    float arg6

    Seventh float value.

    float arg7

    Eighth float value.

    SetText(StringBuilder)

    Set the text using a StringBuilder.

    Declaration
    public void SetText(StringBuilder text)
    Parameters
    Type Name Description
    StringBuilder text

    StringBuilder with text to display.

    SetText(char[])

    Set the text using a char array.

    Declaration
    public void SetText(char[] text)
    Parameters
    Type Name Description
    char[] text

    SetText(char[], int, int)

    Set the text using a char array with specified starting character and length.

    Declaration
    public void SetText(char[] text, int start, int length)
    Parameters
    Type Name Description
    char[] text

    Source char array that contains the Unicode characters

    int start

    The starting character index in the array.

    int length

    The number of characters to be set.

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