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

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Carl
Posts: 9
Joined: Fri May 01, 2020 11:29 am

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

Post 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.
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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
Carl
Posts: 9
Joined: Fri May 01, 2020 11:29 am

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

Post by Carl »

That's a perfect fix!

Thank you so much, you're a legend.
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

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

Post by Tony Li »

Happy to help! :-)
Carl
Posts: 9
Joined: Fri May 01, 2020 11:29 am

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

Post 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!
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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?
Carl
Posts: 9
Joined: Fri May 01, 2020 11:29 am

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

Post 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!
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

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

Post by Tony Li »

Hi,

Has the selector's target disappeared? If so, in the OnConversationEnd() event try adding a call to Selector.DeselectTarget.
Carl
Posts: 9
Joined: Fri May 01, 2020 11:29 am

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

Post 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 :)
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

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

Post by Tony Li »

Glad to help! :-)
Post Reply