Page 1 of 1

Standard UI Subtitle Panel - Issue with Start State

Posted: Wed Feb 16, 2022 5:07 am
by michaelheiml
Hi Tony,

please help me on this, I have:

1. Dialogue Actor with a "Standard UI Subtitle Panel" as child (which itself contains a custom speechbubble)
2. Subtitle Panel Settings "Visibility: Always from Start" and "Start State: Closed"
3. speechbubble (child of Subtitle Panel) has Animator with your example "Canvas Group Animator Controller" (4 states: Show/Hide/Focus/Unfocus with your example animation files)

If I start the scene, the Subtitle Panel GOs are enabled (good), but also the speechbubbles are visible (this is the problem in this case) because the Animator immediately goes into the "Show" state, although I selected "Closed" as Start State. The Animators' Start Node points to the "hidden" animation which sets the speechbubbles scale to 0,0,0 but it seems this is also ignored.

I've also tried to set "Visibility: Always Once Shown" but this also has an unwanted effect. Now, the speechbubbles are visible as soon as the NPC/PC says something (good; but this is only because the speechbubbles' initial size is 0,0,0 and as soon as the Subtitle Panel gets enabled, the Animator gets enabled and starts the "Show" transistion), but this leads me to the problem that I need the Subtitle Panel to be enabled BEFORE a line is said (I need to do some setup).

So I want to achieve:
1. have the Subtitle Panels enabled right from the start even before lines are spoken -> I can do setup
2. have the Subtitle Panels Animator State "Hide/Hidden" until the associated NPC/PC says the first line (bubble is scaled 0,0,0 as defined in the hidden/hide animations)

Am I making a mistake here or why is the "Show" State triggered even if setup is "Start State: Closed" ?

Thanks, Michael

Re: Standard UI Subtitle Panel - Issue with Start State

Posted: Wed Feb 16, 2022 11:05 am
by Tony Li
Hi Michael,

Feel free to send a reproduction project to tony (at) pixelcrushers.com if you'd like me to take a direct look.

Is an instance of the bubble subtitle panel assigned to the Dialogue Actor, or is the prefab assigned?

Try setting the panel's Visibility to Always Once Shown and Start State to GameObject State.

If you temporarily set the Dialogue Manager's Other Settings > Debug Level to Info and reproduce the issue, it will log a lot of information to the Console. You may be able to step through the logs to identify if a blank line is being shown in the bubble or something like that.

Re: Standard UI Subtitle Panel - Issue with Start State

Posted: Thu Feb 17, 2022 4:08 am
by michaelheiml
Hi Toni, I found a solution for it. Thanks for your offer anyways, but sending the project would be tricky.