Speed up typewriter other than continue button.

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
DeidreReay
Posts: 93
Joined: Wed Jan 22, 2020 1:20 pm

Speed up typewriter other than continue button.

Post 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.
User avatar
Tony Li
Posts: 22152
Joined: Thu Jul 18, 2013 1:27 pm

Re: Speed up typewriter other than continue button.

Post 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.
Post Reply