How to let each NPC's line wait for more seconds?
Posted: Tue Apr 25, 2017 10:51 am
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!
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!