Volume Control with Tags

As an alternative to using the Mulitle Volume Controls predefined Tags, you can use this Action and define your own. Simply select the Tag for Audiuon Source dropdown and either create a new tag, or select one previously defined.

You can define as many tags as you wish, however, all gameobjects with the defined tags must contain an Audio source.

Tags can be assigned to any GameObject that has an Audio Source component attached to it. This will allow the volume of that particular sound to be controlled.

The Default Volume for all sounds is 1 and this is the level at which the sound is recorded. Unity does not provide a facility to increase the Volume, only decrease. Using the slider, or by select a variable, all of the Game Objects with the defined TAG and Audio Source will be reduced accordingly.

Game Creator sounds are those that have been started or player using Game Creator Audion Actions. Audio Source sounds are those where the Audio Source is attached to a Game Object. The Game Object must have either SoundTag1 or SoundTag2 to enable volume control.

See the Examples Scenes and Settings Canvas provided with this Module.

Last updated

Was this helpful?