Input.InputText is a null terminated string
stefnotch opened this issue · comments
Input.InputText
is a null terminated string.
Test code:
private void Update()
{
string text = Input.InputText;
if (!string.IsNullOrWhiteSpace(text))
{
SpawnLetter(text);
Debug.Log(text[0] == '\0'); // True
}
}
Thanks for report! Fixed. Wait for the update.
When no text is entered the Input.InputText
will gracefully return string.Empty