Hello,
this is probably a pretty elementary question,
but I'm a bit stuck at the moment and I'd really appreciate some help.
I'm trying to let the player save their name in a variable by using the [var=?VariableName] markup tag which opens
a text input bar for typing and after pressing enter the variable is saved. This works fine with a keyboard on a computer, but on a touch screen there is no way to press enter to confirm the name. Using a touch screen, how might I go about entering the new name and saving the variable?
Entering Text Input Response On Touch Screen
-
- Posts: 2
- Joined: Thu Jan 30, 2020 11:26 pm
Entering Text Input Response On Touch Screen
- Attachments
-
- Screen Shot 2020-01-31 at 7.04.26 PM.png (212.66 KiB) Viewed 303 times
Re: Entering Text Input Response On Touch Screen
Hi,
Inspect the dialogue UI's Text Field UI > Text Field Panel. Add a UI button that the player can tap. Configure its OnClick() button to call the main Text Field UI's StandardUIInputField.AcceptTextInput() method.
Inspect the dialogue UI's Text Field UI > Text Field Panel. Add a UI button that the player can tap. Configure its OnClick() button to call the main Text Field UI's StandardUIInputField.AcceptTextInput() method.
-
- Posts: 2
- Joined: Thu Jan 30, 2020 11:26 pm
Re: Entering Text Input Response On Touch Screen
Got it! Thanks for the quick reply, Tony!
Re: Entering Text Input Response On Touch Screen
Glad to help!