Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: BenChew on March 23, 2015, 08:41:54 AM
-
I have no idea why my soundvolume is constantly = 0
I've tried searching the project for "soundvolume" and have commented all of them except "soundvolume = 1". But the problem still persist after i print soundvolume the next line and got "0"
any chances of cameras or NGUI gameobjects affecting it that I might have mistakenly touched?
-
NGUITools.soundVolume gets the PlayerPrefs-stored value of "Sound", as you can see by opening up NGUITools and looking at line 34. Maybe this is what you're running into? Aside from that, try adding Debug.Log to NGUITools.soundVolume setter to see where it's being called from.
-
PlayerPrefs's Sound is 0. Not sure why, as all my scripts doesn't set this playerprefs
Sorry, how do I Debug.Log it to see where it's called from?
gameObject.name seems to not be the solution, haha
-
Okay, the problem doesn't occur anymore.
I turned my own sound playerprefs off and on again. The problem disappeared
Thanks!