I want to set the text value of an TMP_InputField. When the asignation is done, the saved value is shorter than the expected value.
void Start()
{
GetComponent<TMP_InputField>().text = "this a long default text";
Debug.Log(GetComponent<TMP_InputField>().text); # prints "This is a long d" in console
}

How do I set the full value?
Check Character Limit on the Input FIeld component in the editor?
Character limit is 0 (infinite). I don’t get this issue while writing through the Editor or running the game (using the canvas). It’s just when I set the value through a script
To me that just looks like that the overflow is cut off. You have the same margin on the left side as you have on the right side. So the value is set properly but the text is simply cut off since there’s not enough space to display the text.