Search Unity

TextMesh Pro Exception when calling 'SetText(string, float)

Discussion in 'UGUI & TextMesh Pro' started by Gladyon, Nov 27, 2019.

  1. Gladyon

    Gladyon

    Joined:
    Sep 10, 2015
    Posts:
    389
    It happens when the float is Positive.Infinity.
    The 'do-while' loop in 'TMP_Text.AddIntToCharArray()' will never end, but instead of freezing it will throw an out of range exception because of 'm_input_CharArray'.

    I guess that a special case for both infinity and also NaN probably will solve the problem nicely.