Author Topic: Checkbox Mute  (Read 2532 times)

Echo

  • Guest
Checkbox Mute
« on: November 25, 2012, 11:18:35 PM »
Hey I'm using a checkbox to mute my game, but when I use OnActivation + Debug.Log it doesn't seem to be working. Should I use a different function? Also If I get it working what's the most efficient way to mute the game? It seems weird to reference all objects with an audio source one by one and turn their volumes down.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Checkbox Mute
« Reply #1 on: November 26, 2012, 12:20:55 AM »

Echo

  • Guest
Re: Checkbox Mute
« Reply #2 on: November 29, 2012, 07:28:42 PM »
It's "OnActivate" by default: http://www.tasharen.com/ngui/docs/class_u_i_checkbox.html#a05dbf1df1735738e8448cec8bb5c0612
Don't know why I said OnActivation, already using OnActivate currently.

EDIT: Nvm, I'm ashamed of my self. I forgot to put the script on the GameObject. Sorry.
« Last Edit: November 29, 2012, 07:40:45 PM by Echo »