Selector UI showing up for a brief moment on re-enable.
Selector UI showing up for a brief moment on re-enable.
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.
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.
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
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.
That's a perfect fix!
Thank you so much, you're a legend.
Thank you so much, you're a legend.
Re: Selector UI showing up for a brief moment on re-enable.
Happy to help!
Re: Selector UI showing up for a brief moment on re-enable.
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:
What am I missing or doing wrong?
Thank you in advance!
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:
What am I missing or doing wrong?
Thank you in advance!
Re: Selector UI showing up for a brief moment on re-enable.
Hi,
What version of the Dialogue System are you using?
Can you back up your project and update to version 2.2.7?
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.
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!
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.
Hi,
Has the selector's target disappeared? If so, in the OnConversationEnd() event try adding a call to Selector.DeselectTarget.
Has the selector's target disappeared? If so, in the OnConversationEnd() event try adding a call to Selector.DeselectTarget.