Page 2 of 2
Re: Hint shown when hovering
Posted: Fri Jul 14, 2023 12:17 am
by Tony Li
Hi,
Can you back up your project and update to the current version? Prior to version 2.2.34, the Conditional() function accepted two string values, where the first string value was a Lua expression.
In the current version (2.2.34+), the Conditional() function accepts a Boolean and a string, which makes more sense.
Re: Hint shown when hovering
Posted: Fri Jul 14, 2023 1:19 am
by GREI
Thank you, the error is gone now.
But something went wrong with my autoscroll.
I am using textmeshpro and the response text is not getting pushed into the screen. I have to manually scroll it.
But the autoscroll seems to work on the continue button. The continue button would always stay at the button of the text.
Here is my setup
- Script.png (74.82 KiB) Viewed 361 times
- MeshPro.png (49.18 KiB) Viewed 361 times
I am using the Scrolling Dialogue UI prefab.
Re: Hint shown when hovering
Posted: Fri Jul 14, 2023 8:51 am
by Tony Li
Hi,
If you temporarily switch back to the "Scrolling Dialogue UI" prefab that ships with the Dialogue System, does it scroll to the bottom when a response menu appears?
If so, and if your dialogue UI doesn't, is the Scroll Rect's UIScrollBarEnabler component assigned to the StandardUIMenuPanel's Scrollbar Enabler field?
Re: Hint shown when hovering
Posted: Fri Jul 14, 2023 10:04 am
by GREI
Hi, neither prefab works. I also tried to just start an empty scene and just add a dialogue trigger and the dialogue manager, the response text still did not scroll.
Re: Hint shown when hovering
Posted: Fri Jul 14, 2023 1:05 pm
by Tony Li
Here's an example based on DemoScene1:
DS_TestScrollingTMP_2023-07-14.unitypackage
If it doesn't work in your project, please try backing up your project and reimporting the Dialogue System in case something got changed in your copy.
Re: Hint shown when hovering
Posted: Sat Jul 15, 2023 11:02 pm
by GREI
Hi it works in any scene that I created after the upgrade. Maybe it's a bug in Unity, but thanks!
Is there any way I can make each chunk of the dialogue more spaced out (kind of like Disco Elysium)? Right now the default scrolling UI cramps text really close together and it gets hard to read.
Re: Hint shown when hovering
Posted: Sat Jul 15, 2023 11:14 pm
by Tony Li
If you use TextMesh Pro (see
here), you can adjust the kerning and line spacing.