Hi Tony,
I am still learning Dialogue System, and I have a lot of questions, some of the questions may seem very stupid, I am sorry for any inconvenience.
When NPC asks a question, how can I still show the asked question during the response menu? right now I am using my own asset following your Standard Dialogue UI video tutorial, and the previous NPC dialogue text is not showing during response menu window.
What if I want to add a V.O. or I just want no response menu for my player dialogue text, do I have to add a third actor as a nonplayer reference for my player?
Suppose I have two response conversations, one have like 2 responses with 2 lines of sentences and another one have 4 responses with 8 lines of sentences, I do not want to use scroll rect to show the response menu, instead I want all the response menu anchored to the bottom of the screen, the response menu area should auto scale depending on the length and count of responses. Another question is that suppose I have a response that may take 2 lines, it will be displayed outside of the response button image, is there any way to auto scale the button in Dialogue System, for these two questions, I understand they can be done in scripting or simple inspector setting in unity, I am just curious if there are any easy way of setting in Dialogue System.
Multiple questions about Dialogue System
-
- Posts: 12
- Joined: Thu Aug 05, 2021 5:15 pm
Multiple questions about Dialogue System
Last edited by howevertt322 on Sat Aug 14, 2021 9:44 am, edited 1 time in total.
Re: Multiple questions about Dialogue System
Hi,
To make the player character immediately reply instead of showing a response menu, inspect the Dialogue Manager GameObject. Tick Display Settings > Subtitle Settings > Show PC Subtitles During Line. If you want the player character to always immediately reply when there is only one response, UNtick Input Settings > Always Force Response Menu. If you only want this to happen when you specify, include the "[auto]" markup tag in the dialogue entry node's Dialogue Text.
Inspect the NPC subtitle panel's Standard UI Subtitle Panel component. Change the Visibility dropdown to something other than Only During Content, such as Always From Start.howevertt322 wrote: ↑Sat Aug 14, 2021 9:30 amWhen NPC asks a question, how can I still show the asked question during the response menu? right now I am using my own asset following your Standard Dialogue UI video tutorial, and the previous NPC dialogue text is not showing during response menu window.
To add V.O., see Cutscene Sequence Tutorials.howevertt322 wrote: ↑Sat Aug 14, 2021 9:30 amWhat if I want to add a V.O. or I just want no response menu for my player dialogue text, do I have to add a third actor as a nonplayer reference for my player?
To make the player character immediately reply instead of showing a response menu, inspect the Dialogue Manager GameObject. Tick Display Settings > Subtitle Settings > Show PC Subtitles During Line. If you want the player character to always immediately reply when there is only one response, UNtick Input Settings > Always Force Response Menu. If you only want this to happen when you specify, include the "[auto]" markup tag in the dialogue entry node's Dialogue Text.
For both of these questions, examine the Basic Standard Dialogue UI prefab. It uses standard Unity UI, and it's configured to behave this way.howevertt322 wrote: ↑Sat Aug 14, 2021 9:30 amSuppose I have two response conversations, one have like 2 responses with 2 lines of sentences and another one have 4 responses with 8 lines of sentences, I do not want to use scroll rect to show the response menu, instead I want all the response menu anchored to the bottom of the screen, another question is that suppose I have a response that may take 2 lines, it will be displayed outside of the response button image, is there any way to auto scale the button in Dialogue System, for these two questions, I understand they can be done in scripting or simple inspector setting in unity, I am just curious if there are any easy way of setting in Dialogue System.
-
- Posts: 12
- Joined: Thu Aug 05, 2021 5:15 pm
Re: Multiple questions about Dialogue System
Hi Tony, thank you for your reply. I just tried the Basic Standard Dialogue UI prefab, the response button is now auto scaling, but for the whole response menu panel, how can I make the panel auto scale due to the total height of all the responsesTony Li wrote: ↑Sat Aug 14, 2021 9:37 am Hi,Inspect the NPC subtitle panel's Standard UI Subtitle Panel component. Change the Visibility dropdown to something other than Only During Content, such as Always From Start.howevertt322 wrote: ↑Sat Aug 14, 2021 9:30 amWhen NPC asks a question, how can I still show the asked question during the response menu? right now I am using my own asset following your Standard Dialogue UI video tutorial, and the previous NPC dialogue text is not showing during response menu window.
To add V.O., see Cutscene Sequence Tutorials.howevertt322 wrote: ↑Sat Aug 14, 2021 9:30 amWhat if I want to add a V.O. or I just want no response menu for my player dialogue text, do I have to add a third actor as a nonplayer reference for my player?
To make the player character immediately reply instead of showing a response menu, inspect the Dialogue Manager GameObject. Tick Display Settings > Subtitle Settings > Show PC Subtitles During Line. If you want the player character to always immediately reply when there is only one response, UNtick Input Settings > Always Force Response Menu. If you only want this to happen when you specify, include the "[auto]" markup tag in the dialogue entry node's Dialogue Text.
For both of these questions, examine the Basic Standard Dialogue UI prefab. It uses standard Unity UI, and it's configured to behave this way.howevertt322 wrote: ↑Sat Aug 14, 2021 9:30 amSuppose I have two response conversations, one have like 2 responses with 2 lines of sentences and another one have 4 responses with 8 lines of sentences, I do not want to use scroll rect to show the response menu, instead I want all the response menu anchored to the bottom of the screen, another question is that suppose I have a response that may take 2 lines, it will be displayed outside of the response button image, is there any way to auto scale the button in Dialogue System, for these two questions, I understand they can be done in scripting or simple inspector setting in unity, I am just curious if there are any easy way of setting in Dialogue System.
Re: Multiple questions about Dialogue System
Hi,
It will already auto-scale up to the size of the response menu panel itself. If you want it to scale larger, it's just a matter of adjusting the Unity UI settings. It's not specific to the Dialogue System. Try the settings below. I recommend making and using a copy of the prefab so you won't lose your customizations when you update the Dialogue System.
It will already auto-scale up to the size of the response menu panel itself. If you want it to scale larger, it's just a matter of adjusting the Unity UI settings. It's not specific to the Dialogue System. Try the settings below. I recommend making and using a copy of the prefab so you won't lose your customizations when you update the Dialogue System.
- Response Menu Panel:
- Scale to the size of the entire screen. (On the Rect Transform component, select the double blue arrows that tell it to stretch in both directions. Set Left/Right/Top/Bottom to zero.)
- Disable the Image and UIScrollbarEnabler components.
- Scroll Rect: Disable the Scroll Rect, Image, and Mask components.
- Scroll Content:
- Set the Rect Transform to anchor at the bottom and stretch horizontally. Set Pivot to (0,0). Set Pos Y to zero.
- Set the Vertical Layout Group > Child Alignment to Lower Center.
-
- Posts: 12
- Joined: Thu Aug 05, 2021 5:15 pm
Re: Multiple questions about Dialogue System
Hi Tony,
Thank you for your reply, I think maybe I wrote my question in a wrong way, here are two pictures of what the panel is right now, and what I want my response panel be like.
I have attached two images, basically they are just the same image, I just cropped the bottom part, what I want is that the whole response panel can scale to the summed height of all response texts. For Instance NPC started the conversation, and I have A B, and C responses, so the response panel will auto scale to the height of A+B+C, and the NPC's previous text will be on top of the response panel. If I only have A and B responses, the response panel will only have a height of A+B, and the position of the NPC's previous text will change as well.
I am really sorry for any misunderstanding of my question.
Thank you for your reply, I think maybe I wrote my question in a wrong way, here are two pictures of what the panel is right now, and what I want my response panel be like.
I have attached two images, basically they are just the same image, I just cropped the bottom part, what I want is that the whole response panel can scale to the summed height of all response texts. For Instance NPC started the conversation, and I have A B, and C responses, so the response panel will auto scale to the height of A+B+C, and the NPC's previous text will be on top of the response panel. If I only have A and B responses, the response panel will only have a height of A+B, and the position of the NPC's previous text will change as well.
I am really sorry for any misunderstanding of my question.
- Attachments
-
- what I want, a cropped version anchored to the bottom of the screen
- 2.png (17.5 KiB) Viewed 1238 times
-
- What it looks like right now
- 1.png (48.3 KiB) Viewed 1238 times
Re: Multiple questions about Dialogue System
Hi, if you follow the steps I provided above, it should produce the result you want.
-
- Posts: 12
- Joined: Thu Aug 05, 2021 5:15 pm
Re: Multiple questions about Dialogue System
oh, sorry did not disable response menu panel image, thank you for your help! it works now
Re: Multiple questions about Dialogue System
Glad to help!