Page 1 of 1

Speed up typewriter other than continue button.

Posted: Thu Feb 03, 2022 11:13 pm
by DeidreReay
Wondering how to use the enter or perhaps space bar to speed up the NPCS response ( Using the customized Letterbox and invector integration etc.) as in like the CONTINUE Button.. Any way to do this as the continue button is jsut standing out a bit too much with our UI now and feel like flow could be better with just a keyboard button press.

Re: Speed up typewriter other than continue button.

Posted: Fri Feb 04, 2022 9:28 am
by Tony Li
Hi,

When you press Enter or Space, Unity will click whatever button is focused. If you've ticked the Dialogue Manager GameObject's Input Device Manager component > Always Auto Focus checkbox, it will keep the continue button focused. You can make the continue button invisible by inspecting its Image component and setting the Color's alpha value to zero. Also delete its child Text GameObject.

If you don't want to tick Always Auto Focus, you can add a UI Button Key Trigger component to the continue button, and set the Key dropdown to Space.