- Home /
How to use option setting Vibrate and Mute
Hello I'm got problems about Setting Menu of my Games I want to on/off Vibrate and Sound in iOS Anybody who can recommend me please Help Cheers!
Answer by Waz · Sep 17, 2011 at 10:25 PM
So make a menu that sets a bool that controls whether "your" game calls iPhoneUtils.Vibrate
, and that sets AudioListener.volume
. And try reading the manual before asking questions.
Thx for your help but i have try to find a lot of my answer but any answer wont work i want to make a toggle menu when i tick off all of the music in my project will be off
There is not going to be some single magic way to do this. You have to write code that allows the user to set a boolean and then use this boolean to control the music - either at the listener (AudioListener.volume) or at the source (AudioSource.volume) of each sound/music clip.
Put another way, you're asking "How do I make a Beetroot and Peanut butter sandwich - all I can find is answers telling me how to make a beetroot and cheese sandwich or how to make a PBJ, but I want something different." - you have to learn the component pieces of what you want to achieve and learn how to assemble them. Eventually, all sandwiches use the same techniques, just in different ways, with different combinations of ingredients.