How to let each NPC's line wait for more seconds?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
ironmanman
Posts: 16
Joined: Tue Apr 04, 2017 10:10 am

How to let each NPC's line wait for more seconds?

Post by ironmanman »

Dear Tony,

I am using the Texting Conversation Log Unity UI Dialogue UI. It looks like mobile phone text.It's very nice. But I want to modify the codes.



Now lt look like this:

NPC: Hello! ---- wait for a frame, maybe.

NPC: Good Moring! ---- wait for a frame, maybe.---> How can I add the fuction " yield return new WaitForSeconds(5);" I want every Line wait more sceonds before it shows up.

NPC: How are you doing? -------- wait for a frame, maybe

Player: I am doing good Player : Not bad ----If you choose one line

NPC: That's Great!! ----this line shows up right away! How can I add the fuction " yield return new WaitForSeconds(5);" I want every Line wait more sceonds befor it shows up. [/i]


All in all, it makes the NPC feel like a real person. He is trying to type the texts so we have to wait more time until the NPC finished the line and send it.

Should I add codes in Text Log UI script? I tried to add WaitForSeconds(5); in IEnumerator JumpToBottom (),it doesn't work. So Please help me !!

Thank you !! You are the best!
Attachments
屏幕快照 2017-04-25 下午10.50.41.png
屏幕快照 2017-04-25 下午10.50.41.png (32.13 KiB) Viewed 363 times
User avatar
Tony Li
Posts: 21722
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to let each NPC's line wait for more seconds?

Post by Tony Li »

Hi,

Try setting the Dialogue Manager GameObject's Display Settings > Camera Settings > Default Player Sequence to:

Code: Select all

Delay({{end}})
Post Reply