Page 1 of 1

Delaying fade time of key words in Alert Panel

Posted: Thu Apr 26, 2018 10:31 pm
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

Re: Delaying fade time of key words in Alert Panel

Posted: Fri Apr 27, 2018 8:19 am
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.