Hello.
I’m using the “UI template: Chat Log” in Adventure Creator and have encountered two issues.
・The scrollbar cannot be selected.
When using direct control, it is not selected by “Auto-select first visible element,” so I cannot interact with it.
I’ve also tried assigning elements such as “Drag” and “Button.”
Elements like the “Conversation” button and the “Option” slider can be selected and operated normally.
When I uncheck “directly navigate when used?”, I can scroll and drag with the mouse, so I’ve confirmed that the scrollbar works properly.
I’ve also confirmed that if I uncheck this option and click with the mouse, I can then scroll up and down using direct manipulation.
Therefore, I believe this issue would be resolved if I could select the element using “Auto-select first visible Element.”
・Text is not displayed.
The background is visible.
If you place ChatLogUI directly in the Hierarchy, the text becomes visible.
Since this serves as a workaround for practical purposes, there’s no need to resolve this immediately.
(I’m a beginner who’s only been using Unity for a few weeks, so it’s highly likely this issue isn’t caused by ChatLogUI.
If you can’t think of a solution, feel free to ignore this.)
Thank you for your assistance.
Unity 6000.3.22f1
Adventure Creator 1.86.5
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Welcome to the community, @urokocha, and thanks for the report.
The Chat Log's behaviour is driven through its own dedicated script, rather than the Menu system. To control it using direct-navigation, you need to instead check the "Direct Navigation" checkbox in its Chat Log component on the prefab's root.
This option, however, was previously only used to navigate dialogue choices - I've just updated it to also affect the scrollbar.
While testing, I also encountered an issue where initial text can display above the top edge of the screen depending on your window's aspect ratio. I've corrected this as well. If you re-import and apply the Template, you should see these changes take effect.
Chris, thank you so much for responding so quickly!
However, even after updating, it still won’t let me make a selection.
I’m not sure if this is related, but when the conversation log builds up and the scroll bar becomes active, for some reason I can make a selection just above and to the right of the “Conversation” options.
If I open the chat log with the selection in that position, I can use the scroll bar.
I’d like to resolve this as a separate issue with the “Conversation” feature, so I’ll create a new discussion if necessary.
Also, when “Show Conversation Options” is turned on and the “Submit Input Button” is assigned, the top option in the Conversation list gets automatically selected, causing a loop.
Incidentally, the scroll bar worked when “Pauses game?” was turned off.
My original vision was to open the chat log while the characters and background continued to move.
Therefore, I’m thinking of implementing a system that pauses character movement and temporarily hides subtitles and other elements.
I’ve already been able to execute this operation without any issues using the ActionList.
This “move” is an animation.
I've updated the package again to have the scrollbar also react to input while the game is paused, but I'm not clear on the selection issue you're now facing.
Could you share screenshots or a video to show the behaviour? I'm not sure if this is due to another Menu or some other factor unique to your project/settings.
The top option selecting automatically is the intended behaviour. What is the loop behaviour you're experiencing?
I can now move the scroll bar even while posing.
Thank you so much!
Here is the video showing the problematic part.
https://imgur.com/a/hB3RGLK
If the loop behaves as intended, I won't use it, so there's no problem.
No, it's not intended - the Scrollbar shouldn't be selectable when invisible like that. I'm not sure if this is a Unity issue, but there are some things to try to work around it.
Open up your ChatLogUI prefab and locate the Scrollbar Vertical object. In its Scrollbar component, uncheck Interactable if you intend to only navigate this using the Chat Log component's direct navigation options. Does this prevent the issue?
Once I unchecked Interactable , the options stopped moving to the outside, and the issue was resolved.
I was able to get the behavior I wanted.
Chris, thank you so much again for all your help!