How do i use NGUI Button to run a script?

i seem to have a issue with ngui button, i tried my scripts nothing happens. i very surprised to see they dont even have a script to do that and my scripts arent working. im using an image button. to say the truth Unity gui is better than ngui. very dissapointed.

Last I knew, NGUI uses a pretty simple set of named events. Your needs here should be pretty simple:

  • Custom script attached to your button object
  • The script should contain an OnClick() function
  • That function should do something

Have you been following NGUI’s tutorials? They’re pretty helpful.

i was missing some files. its all fixed thanks anyways.