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!

1 Answer

1

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.

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.