Page 1 of 1

Buttons

Posted: Wed Jun 23, 2021 8:33 pm
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.

Re: Buttons

Posted: Wed Jun 23, 2021 8:45 pm
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 280 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: