NGUI Integration

Several NGUI events are supported by Event Sounds. There's also Button Clicker script, which can trigger up to five Sound Groups for different NGUI events.

Button Clicker

If you have an NGUI button with a collider, go ahead and attach this script to it from the menu: Component -> Dark Tonic -> Master Audio -> Button Clicker. You will notice that the Inspector has dropdowns in the Button Clicker section. They each contain the list of Sound Groups from the Master Audio game object. You can play a sound from the following NGUI events:

  1. MouseDown
  2. MouseUp
  3. MouseClick
  4. MouseHover Start
  5. MouseHover End
 
There are also checkboxes for resizing the button while clicking or hovering. If you use these, a hover will cause the button to shrink slightly during a hover. A click will cause the button to grow slightly during the click. An additional setting for "Resize All Siblings" will appear as well if you're using the resize settings. Checking this will also resize all other child game objects of the same parent as this game object. This helps to resize button text and other small graphics at the same level instead of just the button.