Multiple Volume Controls
Last updated
Last updated
Volume controls can be applied to audio played using GC Actions and Audio Source attached to a Game Object. To use the Multiple Volume Controls Action, you need to define two new Game Object Tags.
SoundTag1
SoundTag2
If these Tags are not defined, Unity will throw an error and the Action will not complete.
These 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. At present, there are two groups, Tag 1 and Tag 2, and these can be controlled using the Mulitple Volume Controls Action.
Do not assign a Sound tag to an Object WITHOUT an Audio Source. This will result in an Error.
This Action can be Triggered from an input, or from a Variable. All values can be obtained using Game Creator Variables. See the Canvas example scene for options.
The Default Volume 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, each of the Game Creator sounds and the two TAG groups can each be reduced independanlty of each other.
Default settings are:
GC Music Volume: 1 (can be reduced to 0)
GC Sound Volume: 1 (can be reduced to 0)
GC Voice Volume: 1 (can be reduced to 0)
Audio Source Volume (SoundTag1): 1 (can be reduced to 0)
Audio Source Volume (SoundTag2): 1 (can be reduced to 0)
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.
Recommended Settings for players with Cognitive impairments:
GC Music Volume: 0.3
GC Sound Volume: 0.8
GC Voice Volume: 1
Audio Source Volume (SoundTag1): 1 (for important sounds)
Audio Source Volume (SoundTag2): 0.5 (for environment sounds)
Or allow the player to choose their own levels using an in-game settings panel.
See the Examples Scenes and Settings Canvas provided with this Module.