Page 1 of 1

Text Input character limit reverts to zero

Posted: Tue Jul 27, 2021 8:11 am
by Abelius
Hi there Tony, long time no see.

I've jumped back to DS, as I'm making content for my new game, and I'm having a small issue with a Text Input field.

I've set it to a content type "Name" and a character limit of 20, yet it reverts back to 0 at runtime, so the player can type forever. The text component itself is a regular UI Text, not TMP.

I'm clueless on how to troubleshoot this, as it should be a no-brainer?

Thanks.

Re: Text Input character limit reverts to zero

Posted: Tue Jul 27, 2021 8:18 am
by Tony Li
Hi,

Specify the max length in your TextInput() sequencer command. Example:

Code: Select all

TextInput(Text Field UI, Name:, playerName, 20)

Re: Text Input character limit reverts to zero

Posted: Tue Jul 27, 2021 8:27 am
by Abelius
Oh, that was easy.

Next time I'll RTFM better, lol. :roll:

Re: Text Input character limit reverts to zero

Posted: Tue Jul 27, 2021 8:30 am
by Tony Li
Glad to help! :-)