Standard UI Subtitle Panel - Issue with Start State
Posted: Wed Feb 16, 2022 5:07 am
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
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