- Home /
Any way to change system volume?
Is there way to increment/decrement the volume of the operating system, similar to how headphones have an up and down button?
I can't vouch for OS-specific plugins, but there's no way built into Unity, no.
You can manipulate the master audio listener's volume, though.
Typically applications can't access this. There is a reason you have a master volume. Its so the user has control over the volume regardless of what your application is doing. This sort of feature would quickly get abused by advertisers ect, to the point you would be begging the appropriate operating system owner to design it out.
Besides, how do you expect kids to play your game at school when they are supposed to be in class if you keep turning up the volume?
Answer by operhiem1 · Mar 24, 2019 at 10:38 AM
I wrote a plugin to do this: https://github.com/Thynix/OpenVR-VolumeControl/tree/master/Assets/Plugins/SystemVolumePlugin/Windows
Would it be possible to receive events when windows volume becomes muted/unmuted?
Answer by VIPINSIRWANI · Jul 30, 2014 at 05:12 AM
public AudioSource source;
void Start () {
source.volume = 0.5f; //or Whatever
}
Your answer
Follow this Question
Related Questions
How do I get the current overall System's volume? 0 Answers
Why won't 3d sounds play anywhere near 100% volume? 1 Answer
Audio on object plays low in unity 5 1 Answer
Setting audio volume with horizontal slider (to many AudioSources with different volume) 2 Answers
Getting iOS device volume 1 Answer