↧
Answer by fffMalzbier
Just create a function in the script that is attached to the button Game object. For example like this: void OnClick () { //Do stuff } That function will be called every time the button is pressed.
View ArticleAnswer by Geo.Ego
I wrote up a [tutorial][1] that just covers making a button in NGUI from scratch. As fffMalzbier said, you basically just need a script that does something in the OnClick () method, and the code inside...
View Article