#Is it possible to click a uGUI button through code?

1 messages · Page 1 of 1 (latest)

broken bobcat
#

I'm not talking about just triggering the onClick event, I'm talking about actually simulating the click of a button without actually clicking it. Some buttons in my game have scripts with functions subscribed to the button actions so just triggering the onClick wouldn't work.

visual knot
#

Invoking the onClick event will call the listeners subscribed to it