Possible to map interact button to the same key as continue button?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Frank11
Posts: 4
Joined: Thu Sep 01, 2022 6:52 pm

Possible to map interact button to the same key as continue button?

Post by Frank11 »

Hi and thank you for the Dialogue System.

I have mapped the interact button and the continue button to the E key and gamepad south. They seem to work fine but when the conversation ends it begins again immediately I think they are both being registered at the same time.

The continue button works fine when using the mouse to press it but not with the E key, i think maybe I've implemented the new input system incorrectly?
Attachments
ds3.png
ds3.png (91.89 KiB) Viewed 344 times
ds22.png
ds22.png (158.28 KiB) Viewed 344 times
dsunity.png
dsunity.png (128.87 KiB) Viewed 344 times
User avatar
Tony Li
Posts: 21973
Joined: Thu Jul 18, 2013 1:27 pm

Re: Possible to map interact button to the same key as continue button?

Post by Tony Li »

Hi,

Tick the Dialogue System Trigger's Actions > Start Conversation > Prevent Restart On Same Frame Ended.
Frank11
Posts: 4
Joined: Thu Sep 01, 2022 6:52 pm

Re: Possible to map interact button to the same key as continue button?

Post by Frank11 »

Hey thank you so much for your response! The prevent restart on same frame ended was indeed unchecked so thank you for pointing that out, however I'm still having the same issue for some reason.

Pressing the continue button with the mouse ends the conversation just fine also if i hold down the continue button using the keyboard or gamepad it ends fine too, it's just when i tap the continue button on the keyboard or gamepad that it restarts.
User avatar
Tony Li
Posts: 21973
Joined: Thu Jul 18, 2013 1:27 pm

Re: Possible to map interact button to the same key as continue button?

Post by Tony Li »

I wonder if this is an Input System issue or maybe another bug in the Input System. Here are two options on what to do from there:

1. As a test, temporarily switch to Unity's built-in input manager and see if the problem is still present. If not, then it probably has something to do with the Input System.

2. Or send a reproduction project to tony (at) pixelcrushers.com. I can try to reproduce the issue and see if I can figure out what's going on.
Post Reply