- Home /
Question by
ugurtunakoca · Dec 14, 2021 at 09:55 AM ·
buttonbuttonseventsystem
Hi, button.onClick.AddListener makes nothing no error, no adding any listener. Please help
I always tried button.onClick.AddListener(delegate { Function(); }); and it didn't work again. There is no error, no impact at all.
Comment
Please explain what "does not work".
AddListener
won't add the callback in the inspector by design. Only callbacks added through the inspector are visible.
Your answer
![](https://koobas.hobune.stream/wayback/20220613050542im_/https://answers.unity.com/themes/thub/images/avi.jpg)