- Home /
Question by
BilboStabbins · Jan 06, 2015 at 05:57 PM ·
unity 4.6onclick
U4.6 - Equivalent command to NGUI's UIButton.current to detect which button was clicked
Comment
Answer by Mmmpies · Jan 07, 2015 at 02:24 PM
Not seen one for the new UI although I've not gone through all the documantation, I did answer this question the other day where you can have one script handle all buttons.
how-to-detect-multiple-button-clicks-in-one-script
So you could handle it that way even if there isn't a built in function for it.
Your answer
![](https://koobas.hobune.stream/wayback/20220613175743im_/https://answers.unity.com/themes/thub/images/avi.jpg)