Page 1 of 1

Selector UI showing up for a brief moment on re-enable.

Posted: Mon May 04, 2020 4:30 pm
by Carl
Hi,

Beginner here, here I am with another noob question. So here's the situation (following the tutorials):

When I move my cursor on an NPC, the Selector's UI appears. I activate the NPC and the Selector properly disappears during the conversation thanks to the "Selector.enabled" Events. Once the dialogue has ended, the "Selector.enabled" re-enables the Selector, but here's the issue: if I'm not aiming the NPC I can see the Selector UI popping up on screen for a brief moment before disappearing.

So far this wouldn't be an issue at all, if I wasn't trying to also do this:

I'm trying to make "one time only" conversations: I want that once you talk with an NPC, you can't talk to it again anymore.
I'm doing that by setting an Event under the NPC's "Usable" that says "On Use -> Usable.enabled = false".

Now, what happens with the previous issue is that the Selector, instead of popping up and disappearing immediately as I described earlier, remains on screen until I move my cursor away from the NPC.

So... What am I doing wrong?
Sorry if I'm not considering something obvious.

Re: Selector UI showing up for a brief moment on re-enable.

Posted: Mon May 04, 2020 8:12 pm
by Tony Li
Hi,

Thanks for catching that. It's a case that wasn't currently handled by the Selector. This patch will address it:

DS_SelectorPatch_2020-05-04.unitypackage

Re: Selector UI showing up for a brief moment on re-enable.

Posted: Tue May 05, 2020 5:30 am
by Carl
That's a perfect fix!

Thank you so much, you're a legend.

Re: Selector UI showing up for a brief moment on re-enable.

Posted: Tue May 05, 2020 8:33 am
by Tony Li
Happy to help! :-)

Re: Selector UI showing up for a brief moment on re-enable.

Posted: Wed Jun 24, 2020 4:54 pm
by Carl
Hi Tony,

sorry to resurrect this old post. I just started building and I noticed in the build that at the end of each dialogue the Selector UI pops up for an instant before disappearing.

Those are my current Selector Manager settings to make the selector UI disappear and reappear:

Image

What am I missing or doing wrong?

Thank you in advance!

Re: Selector UI showing up for a brief moment on re-enable.

Posted: Wed Jun 24, 2020 5:01 pm
by Tony Li
Hi,

What version of the Dialogue System are you using?

Can you back up your project and update to version 2.2.7?

Re: Selector UI showing up for a brief moment on re-enable.

Posted: Wed Jun 24, 2020 6:00 pm
by Carl
Thank you for your quick reply.

I just tried updating to the 2.2.7 but I'm still getting that behaviour, pretty sure I have some wrong setting somewhere but after inspecting everything multiple times we can't figure out what is it.

On a positive note I'm now seeing it pop-up on Unity as well, so it's a bit faster to test!

Re: Selector UI showing up for a brief moment on re-enable.

Posted: Wed Jun 24, 2020 7:48 pm
by Tony Li
Hi,

Has the selector's target disappeared? If so, in the OnConversationEnd() event try adding a call to Selector.DeselectTarget.

Re: Selector UI showing up for a brief moment on re-enable.

Posted: Thu Jun 25, 2020 1:45 pm
by Carl
Tony Li wrote: Wed Jun 24, 2020 7:48 pm Hi,

Has the selector's target disappeared? If so, in the OnConversationEnd() event try adding a call to Selector.DeselectTarget.
This solved it! Thank you so much :)

Re: Selector UI showing up for a brief moment on re-enable.

Posted: Thu Jun 25, 2020 2:10 pm
by Tony Li
Glad to help! :-)