Page 1 of 1

Assigning proximity selector input

Posted: Fri May 09, 2025 2:00 pm
by freshharvest
Hi, I've been having trouble assigning the proximity selector's input. I have an interact player input action and have been trying to connect it but it doesn't work. Other posts reference an Input Action Registry component? so I'm not sure if I added the right thing for that because I can't find anything that is just named Input Action Registry. The x key works but the f and the gamepad button from the interact action don't, and I tried to use Fire3 from the Input Manager settings but that doesn't work either.
Also the continue button doesn't work ? & the space bar used to continue the dialogue but that stopped working and idk where the setting for that is lol

Re: Assigning proximity selector input

Posted: Fri May 09, 2025 4:35 pm
by Tony Li
Hi,

It looks like you're using the Input System package. In the Dialogue System's Welcome Window, tick the USE_NEW_INPUT checkbox.

Then let's say you have an Input System action named "Interact":

inputSystemProximitySelector1.png
inputSystemProximitySelector1.png (37.52 KiB) Viewed 8642 times

Add an Input Action Registry component to the Dialogue Manager, and assign the "Interact" action to it:

inputSystemProximitySelector2.png
inputSystemProximitySelector2.png (109.62 KiB) Viewed 8642 times

Then put the name of this action ("Interact") in the Proximity Selector's Use Button field:

inputSystemProximitySelector3.png
inputSystemProximitySelector3.png (65.75 KiB) Viewed 8642 times

Re: Assigning proximity selector input

Posted: Mon May 12, 2025 3:31 am
by jehdiaizon
Hi it's still not working for me. This is my setup

THis is the Input Action
Image

This is from Dialogue Manager
Image

This is the Player game object
Image

This is the NPC game object
Image

This is the Player near NPC but it doesn't show the UI dialogue to interact
Image
Image

Re: Assigning proximity selector input

Posted: Mon May 12, 2025 7:58 am
by Tony Li
Hi,

The UI not showing up is a physics issue, not an input issue.

For the input, make sure you've ticked the Welcome Window's USE_NEW_INPUT checkbox. Everything else you showed looks good for input.

For physics, tick the player's Sphere Collider component > Is Trigger checkbox. Make sure the player and NPC have rigidbodies (they can be kinematic), and that their GameObject layers are able to register collisions in Edit > Project Settings > Physics. Check the collision matrix at the bottom.

Re: Assigning proximity selector input

Posted: Tue May 13, 2025 12:16 am
by jehdiaizon
Thank you! You were right, it was the issue of not having a rigidbody :)

Re: Assigning proximity selector input

Posted: Tue May 13, 2025 8:13 am
by Tony Li
Glad to help!