Forum rules - please read before posting.

Limit input character don't work in Android...

Hi to all,
i've follow this tutorial "https://adventurecreator.org/tutorials/letting-player-enter-their-name" and all work.

When i set the limit of 10 character, on my PC, the limit work but on Android the limit don't work.
On my Samsung Note 9 i can put a name without limit.
How can i solve?

Thanks,

Paolo :)

Comments

  • This is currently only allowed for desktop keyboards, as Unity has prevented this setting in the past.

    However, it seems they've allowed this in 2018.3 - which version are you using?

    In PlayerMenus, try inserting the following into the end of the SelectInputBox method (just before the "endif" line):

    keyboard.characterLimit = input.characterLimit;
    
  • Hi, Chris! Wonderful! It's work!

    My Unity is 2018.3.8f1 for Windows.

    I've add your line and now the limit can be set!

    Thank you very much!
    Paolo :)

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.