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
Standard UI Subtitle Panel - Issue with Start State
-
- Posts: 46
- Joined: Thu Nov 08, 2018 5:47 am
Re: Standard UI Subtitle Panel - Issue with Start State
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.
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.
-
- Posts: 46
- Joined: Thu Nov 08, 2018 5:47 am
Re: Standard UI Subtitle Panel - Issue with Start State
Hi Toni, I found a solution for it. Thanks for your offer anyways, but sending the project would be tricky.