Subtitle panels not hiding as intended

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
gmaheux
Posts: 8
Joined: Wed Jan 09, 2019 3:41 pm

Subtitle panels not hiding as intended

Post by gmaheux »

Hello ! :)

After trying stuff for hours and reading every forum post I could see, here's an issue I keep having.

I have two actors in a conversation and each one has its own subtitles panel with a different look. Actor1 is considered as an NPC and actor2 is considered as a player(with IsPlayer checked)My player speaks like any other NPC, my game does not have player chosen answers. The problem is that when the conversation flow goes from a ACTOR1 to ACTOR2 node (same for actor2 to actor1), the previous panel simply does not disappears. Sometimes it just goes out of focus, or simply stays on top while the second one appears in the back.

That said, I found in the forums and by trying stuff a few workarounds. Removing the panel animators and changing their visibility to "Only during content" and start state to "GameObjectState" does fix the problem. BUT by doing this, i now have my panels disappear and reappear between nodes of the same actor, and then i cannot use animated portraits also ... which is just trading a problem for a new one.

Is there anything I can do to fix this?
Thanks a lot.
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Subtitle panels not hiding as intended

Post by Tony Li »

Hi,

Set the subtitle panels' Visibility to Until Superceded. This will keep them visible while the same character is speaking, including when the character speaks more than one dialogue entry in a row. When another character speaks with a different subtitle, the original subtitle will disappear.

Here's an example scene: DS_TestSubtitles_2019-07-17.unitypackage

To set it up, I used the Basic Standard Dialogue UI prefab as-is. I used an instance in the scene in case you want to play around with different settings.
gmaheux
Posts: 8
Joined: Wed Jan 09, 2019 3:41 pm

Re: Subtitle panels not hiding as intended

Post by gmaheux »

Thanks a lot it now works perfectly. I had forgotten to change a subtitle panel reference in the main panel, so all the hiding stuff was being applied to the old unused panel.


Thanks !!
Post Reply