Page 1 of 1

Trouble displaying Use Message

Posted: Tue Mar 12, 2024 11:57 am
by AliceNW
I have a quest that involves collecting a certain number of elements. What I am trying to do is that if the quest is active, when the player approaches the object to collect, there is a Use Message on top of the object that says "Gather".

The functionality of picking up is working correctly.
I have a Dialogue System Trigger connected to the object that is triggered On Use and sets the Rect Transform of the object to False, if the quest is active. I also have a Capsule Collider - On Trigger and I have a Proximity Selector, where I changed the use key to "E".
The collection and quest update is working correctly, but I cannot get the "Default Use Message" to appear when the player approached the object.

Any ideas?

Here is the Proximity Selector of the object:
Screenshot 2024-03-12 165601.png
Screenshot 2024-03-12 165601.png (164.91 KiB) Viewed 199 times
Thanks!

Re: Trouble displaying Use Message

Posted: Tue Mar 12, 2024 12:21 pm
by Tony Li
Hi,

Please run through the tips in: How To: Fix Selector and Proximity Selector Issues

If that doesn't fix it, let me know.

Re: Trouble displaying Use Message

Posted: Tue Mar 12, 2024 12:47 pm
by AliceNW
Hey Tony, thanks for the reply.
I double checked that I have everything needed under the proximity selector list. I was missing a Selector Use Standard UI Elements which I have now added, but no luck.

When I play the scene I can see that the Main Selector Panel from Basic Standard UI Selector Elements gets active, but when I select them, I can also see that they are "empty" in the UI - meaning they don't show anything. I added some screenshots of this, if that helps.
Objects.png
Objects.png (146.06 KiB) Viewed 194 times
scene.png
scene.png (911.89 KiB) Viewed 194 times

Re: Trouble displaying Use Message

Posted: Tue Mar 12, 2024 2:58 pm
by Tony Li
Hi,

Does the "Main Selector Panel" go active right away, or only when the player moves into the Usable NPC's trigger collider?

Are there any errors or warnings in the Console window?

The Interaction Tutorial at 04:00 may be helpful, too:



The video's Description has a link to the tutorial scene so you can try it yourself.

Also, please feel free to send a reproduction project or reproduction steps to tony (at) pixelcrushers.com