[NotABug] Dialogue Actor component subtitle color reset during show/hide

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Abelius
Posts: 318
Joined: Fri Jul 21, 2017 12:45 pm

[NotABug] Dialogue Actor component subtitle color reset during show/hide

Post by Abelius »

Hi there,

I'm having an aesthetic issue with custom subtitle colors.

They are shown in white, instead of their custom color assigned from their Dialogue Actor components, for about 0.2 seconds.

This only happens during the NPC subtitle panel show/hide transition, I think. So my guess is that the subtitle color gets "reset" at the start of those two.

Am I correct and this could be considered undesired behavior, or am I doing something wrong?

Thanks.

Edit: I'm using a TMP Text, btw.
Last edited by Abelius on Sat Aug 07, 2021 5:51 am, edited 1 time in total.
Unity 2019.4.9f1
Dialogue System 2.2.15
User avatar
Tony Li
Posts: 22159
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue Actor component subtitle color reset during show/hide

Post by Tony Li »

Hi,

That is quite strange. Can you send a reproduction scene or reproduction steps to tony (at) pixelcrushers.com?
User avatar
Abelius
Posts: 318
Joined: Fri Jul 21, 2017 12:45 pm

Re: Dialogue Actor component subtitle color reset during show/hide

Post by Abelius »

Ah, not supposed to happen...? Then I'm sure I broke something, lol.

In that case I'll take this to the secondary To-Do list. Most likely, I'll realize what I've done wrong when I take the time to make an isolated repro scene.

Thanks!
Unity 2019.4.9f1
Dialogue System 2.2.15
User avatar
Abelius
Posts: 318
Joined: Fri Jul 21, 2017 12:45 pm

Re: Dialogue Actor component subtitle color reset during show/hide

Post by Abelius »

False alarm.

I've realized it is the NPC Panel *name* what it's not tinting/maintaining the tint, not the subtitle text. I had the impression it was both, but the human eye plays tricks on us easily.

The thing is, I added an FSM to synchronize the character name with the current subtitle color because, to my knowledge, it wasn't supported natively and I guess there's some faulty logic. So I'll try to see if I can make it work better.

Thanks!
Unity 2019.4.9f1
Dialogue System 2.2.15
User avatar
Tony Li
Posts: 22159
Joined: Thu Jul 18, 2013 1:27 pm

Re: [NotABug] Dialogue Actor component subtitle color reset during show/hide

Post by Tony Li »

Hi,

Understood. If you set the portrait name color in OnConversationLine, it should set the color before the panel becomes visible.
Post Reply