Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity master volume changer

public float masterVolume;

Void Start { 

  AdjustVolume(masterVolume);

}

public void AdjustVolume (float newVolume) {
     AudioListener.volume = newVolume;
 }
 
PREVIOUS NEXT
Tagged: #unity #master #volume #changer
ADD COMMENT
Topic
Name
1+9 =