Ignoring Submit button using Rewired

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
avemon
Posts: 2
Joined: Sat Dec 31, 2022 6:20 pm

Ignoring Submit button using Rewired

Post by avemon »

Hi! Happy New Year!

I want to ignore the "Submit button". I'm using Rewired. I already added the Input Device Manager Rewired component and the Rewired Standalone Input module to the EventSystem.

To both dialogue continue button and the response button I've added an UI Button Key Trigger component and ticked "Skip if being clicked by Submit"

In game - If I press the Square button (DS4), the conversation still skips dialogue and selects responses.

Thank you in advance for the guidance.
User avatar
Tony Li
Posts: 22140
Joined: Thu Jul 18, 2013 1:27 pm

Re: Ignoring Submit button using Rewired

Post by Tony Li »

Hi,

"Skip If Being Clicked By Submit" means the UI Button Key Trigger won't also click the button (i.e., an unintentional double click) if the button is being clicked by the Submit input defined on the Input Device Manager component, which should match the EventSystem's Submit input. It won't prevent the EventSystem from reading the Submit input and clicking the button, which is the way Unity UI input works.
avemon
Posts: 2
Joined: Sat Dec 31, 2022 6:20 pm

Re: Ignoring Submit button using Rewired

Post by avemon »

Thank you Tony, I had both standalone input modules active, forgot to remove Unity's. Thank you!
User avatar
Tony Li
Posts: 22140
Joined: Thu Jul 18, 2013 1:27 pm

Re: Ignoring Submit button using Rewired

Post by Tony Li »

Good catch! I wouldn't have thought to suggest checking that.
Post Reply