Disable usable selection UI

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
thecodehermit
Posts: 41
Joined: Mon Jul 19, 2021 11:27 am

Disable usable selection UI

Post by thecodehermit »

Hi

I have a usable component attached to one NPC. I also have a Selector component attached to my hero.
When I hover over the NPC I get 2 UI messages on the top middle of the screen. One is coming from the hero selector and the other is from the NPC usable.
I managed to get rid of the one coming from the Selector by disabling "Use default GUI" in the Selector component/script.
But how do I hide the message for the Usable component from the NPC ?

I only want to hide the messages. I am going to use the events from those components to create my own notifications.
User avatar
Tony Li
Posts: 21684
Joined: Thu Jul 18, 2013 1:27 pm

Re: Disable usable selection UI

Post by Tony Li »

Hi,

If your NPC has a Standard Usable UI as a child GameObject, remove it.
thecodehermit
Posts: 41
Joined: Mon Jul 19, 2021 11:27 am

Re: Disable usable selection UI

Post by thecodehermit »

It doesn't have that. It only has a Usable component.
User avatar
Tony Li
Posts: 21684
Joined: Thu Jul 18, 2013 1:27 pm

Re: Disable usable selection UI

Post by Tony Li »

Hi,

Then I don't know where that second UI is coming from. Please try making a small test scene. When you get your test scene working the way you want (i.e., only showing your custom UI), you can apply the same setup to your original scene.
thecodehermit
Posts: 41
Joined: Mon Jul 19, 2021 11:27 am

Re: Disable usable selection UI

Post by thecodehermit »

ohh... I feel like an idiot sometimes...
I had two heroes, and they both have the selector component... I disabled the "Use default GUI" in the second hero and the messages are gone. That explains why I had 2 messages as well. They were coming from each hero and not the NPC.
Anyway everything is fixed now
User avatar
Tony Li
Posts: 21684
Joined: Thu Jul 18, 2013 1:27 pm

Re: Disable usable selection UI

Post by Tony Li »

Great! Thanks for the update.
Post Reply