I was following this tutorial to learn how to customise the UI: https://www.pixelcrushers.com/dialogue_ ... e_u_i.html
But now when I play the conversation, all response boxes are at the same y position (on top of each other) so if there's more than one player response, you cannot see or select the others.
Also, I notice that the player responses sometimes switch order. How can I keep all the responses in the same order?
Response Buttons on Top of Each Other
Re: Response Buttons on Top of Each Other
Hi,
Add a Vertical Layout Group to the Button Template Holder UI element. This still organize them vertically.
If you can reproduce this problem in the Unity editor, pause the game and play with the UI. You'll lose your changes when you stop playmode, but this will at least help you figure out what design-time changes you need to make to the UI.
The responses should stay in the same order. The order of the responses is determined by the order of the links coming from the preceding node. In the Dialogue Editor window, click on the preceding node. In the Inspector view, the order of the links will be shown at the bottom, in the "Links To:" section.
Add a Vertical Layout Group to the Button Template Holder UI element. This still organize them vertically.
If you can reproduce this problem in the Unity editor, pause the game and play with the UI. You'll lose your changes when you stop playmode, but this will at least help you figure out what design-time changes you need to make to the UI.
The responses should stay in the same order. The order of the responses is determined by the order of the links coming from the preceding node. In the Dialogue Editor window, click on the preceding node. In the Inspector view, the order of the links will be shown at the bottom, in the "Links To:" section.
Re: Response Buttons on Top of Each Other
Thanks, adding the vertical layout fixed it.
But the responses are definitely showing in a different order every time I play the conversation. The order of the links coming from the node in the Dialogue Editor window is different than what is being shown on screen. I think the first time I play the conversation it's in the correct order but on multiple times playing it, the order changes.
But the responses are definitely showing in a different order every time I play the conversation. The order of the links coming from the node in the Dialogue Editor window is different than what is being shown on screen. I think the first time I play the conversation it's in the correct order but on multiple times playing it, the order changes.
Re: Response Buttons on Top of Each Other
Hi,
I'll investigate this.
If you use the Basic Standard Dialogue UI as a test, does it also show the response buttons in a random order? This will help me determine whether it's specific to your dialogue UI or something internal to the Dialogue System. Thanks!
I'll investigate this.
If you use the Basic Standard Dialogue UI as a test, does it also show the response buttons in a random order? This will help me determine whether it's specific to your dialogue UI or something internal to the Dialogue System. Thanks!
Re: Response Buttons on Top of Each Other
I haven't been able to reproduce the random order. Please let me know if the Basic Standard Dialogue UI shows the same problem.
Also, you can temporarily set the Dialogue Manager's Other Settings > Debug Level to Info. This will log a lot of info to the Console window. Look for lines like:
Dialogue System: Add Link (Player): ID=1:2 'Response A' (True)
Dialogue System: Add Link (Player): ID=1:3 'Response B' (True)
Dialogue System: Add Link (Player): ID=1:4 'Response C' (True)
Dialogue System: Add Link (Player): ID=1:5 'Response D' (True)
Dialogue System: Add Link (Player): ID=1:6 'Response E' (True)
This should be the order that the response menu uses. Let me know if it's the same order every time, or if this list is random, too.
Also, you can temporarily set the Dialogue Manager's Other Settings > Debug Level to Info. This will log a lot of info to the Console window. Look for lines like:
Dialogue System: Add Link (Player): ID=1:2 'Response A' (True)
Dialogue System: Add Link (Player): ID=1:3 'Response B' (True)
Dialogue System: Add Link (Player): ID=1:4 'Response C' (True)
Dialogue System: Add Link (Player): ID=1:5 'Response D' (True)
Dialogue System: Add Link (Player): ID=1:6 'Response E' (True)
This should be the order that the response menu uses. Let me know if it's the same order every time, or if this list is random, too.