If Dialogue Text is more than the gameobject's height,could it auto change his line and wait player click to the next ?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
shortlin
Posts: 73
Joined: Wed Jun 03, 2020 1:52 am

If Dialogue Text is more than the gameobject's height,could it auto change his line and wait player click to the next ?

Post by shortlin »

If you type a lot of texts and let it's number to be more than his gameobject's height,the text would exceed the gameobject,just like this:
sshot-2020-11-04-[10-48-08].png
sshot-2020-11-04-[10-48-08].png (34.36 KiB) Viewed 277 times
So could the dialogue system auto cut the line when the text exceed the gameobject''s height and player click the continue button could see the text that is not be finished in the conversation's node?
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: If Dialogue Text is more than the gameobject's height,could it auto change his line and wait player click to the nex

Post by Tony Li »

Hi,

Normally in this case you would put the text in a scroll rect so the player can scroll up and down.

If you're using a typewriter effect, you can set up auto scroll.

If you don't want to do that, you could make a subclass of StandardUISubtitlePanel and override ShowSubtitle() to do what you described.
shortlin
Posts: 73
Joined: Wed Jun 03, 2020 1:52 am

Re: If Dialogue Text is more than the gameobject's height,could it auto change his line and wait player click to the nex

Post by shortlin »

Thank you~If it's necessary,I will try later.
Post Reply