Hi Tony.
I've decided not to use speech bubbles. I have a lot of hotspots close to the bottom of the screen and it doesn't make sense to have massive speech bubbles as they don't always fit on the screen. So I've reverted to using customised PC and NPC templates instead. I used the basic template as a starting point.
All works well apart from the following issue.
There are a few lines of dialogue, then the response panel is revealed to display the options. I click on the first option, player asks a question, NPC responds. I click on the Continue button and the response panel opens again. However, the NPC's dialogue panel still appears on the screen. Screenshot below to demonstrate. Please let me know if you need anything further. I'm sure I'm just missing something simple, but can't track it down.
Many thanks
Caroline
Previous Dialogue reamins on screen
Re: Previous Dialogue reamins on screen
Hi Caroline,
Inspect the subtitle panel's Standard UI Subtitle Panel component. Change the Visibility dropdown to Only During Content.
Inspect the subtitle panel's Standard UI Subtitle Panel component. Change the Visibility dropdown to Only During Content.
Re: Previous Dialogue reamins on screen
Thanks Tony. I just couldn't see the obvious!
Re: Previous Dialogue reamins on screen
No worries! If that doesn't work exactly the way you want, just let me know. There are a lot of little features like this tucked away in the dialogue UI components.
Re: Previous Dialogue reamins on screen
Hi Tony
Yes, that worked perfectly. I have it set up how I need it now, thank you.
The only minor niggle is that when I click the screen with the mouse left button (I removed the continue button)to fast forward the dialogue (using typewriter) to the end of the sentence and then click again to bring up the next player/npc's dialogue, it fades and quickly reloads twice. I think I had this problem before, and I didn't manage to sort it out.
I removed show and hide from Focus and Unfocus Animation Triggers on the NPC and Player Standard Dialogue UI Panels, I have the on Click () StandardContineButtomFastForward element set up on the Continue button child. Is it best to remove the animations you've done for a cleaner transition? It would be nice for the last dialogue line to fade before returning to game play though.
Many thanks
Caroline
Yes, that worked perfectly. I have it set up how I need it now, thank you.
The only minor niggle is that when I click the screen with the mouse left button (I removed the continue button)to fast forward the dialogue (using typewriter) to the end of the sentence and then click again to bring up the next player/npc's dialogue, it fades and quickly reloads twice. I think I had this problem before, and I didn't manage to sort it out.
I removed show and hide from Focus and Unfocus Animation Triggers on the NPC and Player Standard Dialogue UI Panels, I have the on Click () StandardContineButtomFastForward element set up on the Continue button child. Is it best to remove the animations you've done for a cleaner transition? It would be nice for the last dialogue line to fade before returning to game play though.
Many thanks
Caroline
Re: Previous Dialogue reamins on screen
Hi Caroline,
Try this:
1. Remove the Animator component from the subtitle panels (the GameObjects with Standard UI Subtitle Panel component) and the response menu panel(s) (the GameObjects with the Standard UI Menu Panel component). This guarantees that nothing funny will be happening with them regarding animation.
2. Leave the Animator on the Dialogue Panel. The Dialogue Panel has a UI Panel component. Make sure its Show Animation Trigger is still set to "Show" and Hide Animation Trigger is set to "Hide", or whatever trigger parameters the animator controller uses. If you're using the default Canvas Group Animator Controller, it's Show and Hide.
Try this:
1. Remove the Animator component from the subtitle panels (the GameObjects with Standard UI Subtitle Panel component) and the response menu panel(s) (the GameObjects with the Standard UI Menu Panel component). This guarantees that nothing funny will be happening with them regarding animation.
2. Leave the Animator on the Dialogue Panel. The Dialogue Panel has a UI Panel component. Make sure its Show Animation Trigger is still set to "Show" and Hide Animation Trigger is set to "Hide", or whatever trigger parameters the animator controller uses. If you're using the default Canvas Group Animator Controller, it's Show and Hide.
Re: Previous Dialogue reamins on screen
Perfect! Thanks again, Tony. Very happy with that now.
Re: Previous Dialogue reamins on screen
Happy to help!