Text Input character limit reverts to zero

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Abelius
Posts: 318
Joined: Fri Jul 21, 2017 12:45 pm

Text Input character limit reverts to zero

Post 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.
Unity 2019.4.9f1
Dialogue System 2.2.15
User avatar
Tony Li
Posts: 22159
Joined: Thu Jul 18, 2013 1:27 pm

Re: Text Input character limit reverts to zero

Post by Tony Li »

Hi,

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

Code: Select all

TextInput(Text Field UI, Name:, playerName, 20)
User avatar
Abelius
Posts: 318
Joined: Fri Jul 21, 2017 12:45 pm

Re: Text Input character limit reverts to zero

Post by Abelius »

Oh, that was easy.

Next time I'll RTFM better, lol. :roll:
Unity 2019.4.9f1
Dialogue System 2.2.15
User avatar
Tony Li
Posts: 22159
Joined: Thu Jul 18, 2013 1:27 pm

Re: Text Input character limit reverts to zero

Post by Tony Li »

Glad to help! :-)
Post Reply