Page 1 of 1

Strange editor issue

Posted: Fri Sep 25, 2020 9:40 pm
by dancinggoat23
Hi

Has anyone seen the attached issue? I cannot see all the fields in several DS components in the inspector. The text is cut off, as you can see in both screenshots. This is a recent issue, but I don't know if it's specific to the version of Unity I'm using (2019.4.11f).

thanks!

Re: Strange editor issue

Posted: Fri Sep 25, 2020 9:44 pm
by Tony Li
Try widening the Inspector view. Newer versions of 2019.4 give more room to each field. If there's not enough room for the label to the left of each field, it word-wraps the label.

Side note: You should not add a Sequencer component yourself. The Dialogue System will add one as needed.

Re: Strange editor issue

Posted: Fri Sep 25, 2020 11:00 pm
by dancinggoat23
Thanks. That is an annoying feature in the inspector...

Re sequencer: that is a brain failure on my part... thanks! I’ll use a Dialogue System Trigger like I should :oops:

Re: Strange editor issue

Posted: Fri Sep 25, 2020 11:07 pm
by dancinggoat23
So... what's the recommended way for me to set a Lua variable using a Unity event? I trigger an event when the player succeeds in traversing a path, and I would like to set the variable at that time. I had thought that the Dialogue System Trigger would help, but it's not quite what I need. I think that's why I used a Sequencer directly...

thanks again!

Re: Strange editor issue

Posted: Sat Sep 26, 2020 9:16 am
by Tony Li
Hi,

You can write a tiny script to set a variable, and hook up the UnityEvent to that script.

Or you can use a Dialogue System Trigger. Set it to On Use. Select Add Action > Run Lua Code. Then use the "..." button to specify what you want to set, or type it manually if you prefer:

Code: Select all

Variable["TraversedPath"] = true
Then configure the UnityEvent to call the Dialogue System Trigger's OnUse method. Here's an example of a Trigger Event that sets a variable when the player enters the trigger collider:

unityEventCallDSTrigger.png
unityEventCallDSTrigger.png (33.95 KiB) Viewed 784 times

Re: Strange editor issue

Posted: Sat Sep 26, 2020 12:58 pm
by dancinggoat23
That's brilliant. Thank you! Exactly what I was looking for.

Re: Strange editor issue

Posted: Sat Sep 26, 2020 8:59 pm
by Tony Li
Happy to help!