Speed up typewriter other than continue button.
-
- Posts: 93
- Joined: Wed Jan 22, 2020 1:20 pm
Speed up typewriter other than continue button.
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.
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.
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.