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.
Disable usable selection UI
Re: Disable usable selection UI
Hi,
If your NPC has a Standard Usable UI as a child GameObject, remove it.
If your NPC has a Standard Usable UI as a child GameObject, remove it.
-
- Posts: 41
- Joined: Mon Jul 19, 2021 11:27 am
Re: Disable usable selection UI
It doesn't have that. It only has a Usable component.
Re: Disable usable selection UI
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.
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.
-
- Posts: 41
- Joined: Mon Jul 19, 2021 11:27 am
Re: Disable usable selection UI
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
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
Re: Disable usable selection UI
Great! Thanks for the update.