Buttons

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
OlofGameDev
Posts: 5
Joined: Wed Jun 09, 2021 7:24 am

Buttons

Post by OlofGameDev »

Hi. I set up a project with Dialogue System for Unity. Everything was working. I switched from Unity's old input system to the new one. Now the OnClick events on the buttons are unasigned. When I open the quest log window there are no functions assigned to the buttons. Same thing with dialogues. The response buttons has no OnClick functions assigned to them.
User avatar
Tony Li
Posts: 21961
Joined: Thu Jul 18, 2013 1:27 pm

Re: Buttons

Post by Tony Li »

Hi,

It's okay for the response buttons' OnClick() events to be completely empty:

responseButtonEmpty.png
responseButtonEmpty.png (67.52 KiB) Viewed 266 times

If OnClick() is completely empty, the StandardUIResponseButton component will automatically set it up at runtime.

However, if OnClick() has anything in it (even an empty, unassigned element), you must also manually assign StandardUIResponseButton.OnClick.

Since you switched to the new Input System package, please make sure you set up the Dialogue System to work with it:

Post Reply