Assigning proximity selector input

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
freshharvest
Posts: 1
Joined: Fri May 09, 2025 1:04 pm

Assigning proximity selector input

Post 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
Attachments
Screenshot 2025-05-09 135817.png
Screenshot 2025-05-09 135817.png (328.26 KiB) Viewed 8637 times
User avatar
Tony Li
Posts: 23251
Joined: Thu Jul 18, 2013 1:27 pm

Re: Assigning proximity selector input

Post 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 8629 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 8629 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 8629 times
jehdiaizon
Posts: 2
Joined: Mon May 12, 2025 3:14 am

Re: Assigning proximity selector input

Post 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
User avatar
Tony Li
Posts: 23251
Joined: Thu Jul 18, 2013 1:27 pm

Re: Assigning proximity selector input

Post 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.
jehdiaizon
Posts: 2
Joined: Mon May 12, 2025 3:14 am

Re: Assigning proximity selector input

Post by jehdiaizon »

Thank you! You were right, it was the issue of not having a rigidbody :)
User avatar
Tony Li
Posts: 23251
Joined: Thu Jul 18, 2013 1:27 pm

Re: Assigning proximity selector input

Post by Tony Li »

Glad to help!
Post Reply