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!
How to let each NPC's line wait for more seconds?
-
- Posts: 16
- Joined: Tue Apr 04, 2017 10:10 am
How to let each NPC's line wait for more seconds?
- Attachments
-
- 屏幕快照 2017-04-25 下午10.50.41.png (32.13 KiB) Viewed 450 times
Re: How to let each NPC's line wait for more seconds?
Hi,
Try setting the Dialogue Manager GameObject's Display Settings > Camera Settings > Default Player Sequence to:
Try setting the Dialogue Manager GameObject's Display Settings > Camera Settings > Default Player Sequence to:
Code: Select all
Delay({{end}})