Delaying fade time of key words in Alert Panel

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
nathanj
Posts: 303
Joined: Sat May 28, 2016 12:30 am

Delaying fade time of key words in Alert Panel

Post by nathanj »

Hi Tony

Just a speculative conversation/question.

I was wondering about what would be involved in having key words remain on the screen slightly longer than the main body of text in the Alert Panel.

I'm using a Text Mesh Pro Style Sheet so I can already do a lot of customisation, but being able to have key words hang n the screen slightly longer would be a nice option.

Just an idea really but I'm curious about what you think

Thanks again,
Nathan
User avatar
Tony Li
Posts: 22059
Joined: Thu Jul 18, 2013 1:27 pm

Re: Delaying fade time of key words in Alert Panel

Post by Tony Li »

That sounds like a cool effect. Currently it would require a custom subclass of the dialogue UI (e.g., UnityUIDialogueUI) that overrides the HideAlert method. It could copy the text to a duplicate TMProUGUI that only shows the keywords, then fade out the original, then after a delay fade out the duplicate.

As I'm putting the final touches on version 2.0's Standard Dialogue UI, I'll think over better ways to support effects like this.
Post Reply