SoundGroup
A SoundGroup is used to manage the volume and sound effects on multiple Sounds at once. Sounds in the SoundGroup will have their volume and effects adjusted by the SoundGroup.
Memory category | Internal |
---|
Member index 1
Description
A SoundGroup is used to manage the volume and effects on multiple
Sounds at once. Every sound in the sound group will have its
volume adjusted by the group's Volume property which
acts as a multiplier, meaning a Sound with volume 0.5
assigned to a
SoundGroup with a volume of 0.5
will have an effective volume of
0.25
.
If the SoundGroup has any SoundEffects as children, those effects will be applied to all of the Sounds in the group.
Note that a Sound must be added to a SoundGroup by setting its SoundGroup property, not by simply parenting the Sound to the SoundGroup. A Sound can only belong to one SoundGroup at a time, although you can nest groups as outlined here.
See Sound Groups for further details on working with the SoundGroup class.
History 5
Members 1
Volume
Type | Default | |
---|---|---|
float | 0.5 |
The volume multiplier applied to Sounds which belong to the
SoundGroup. Value can range from 0
to 10
.
Thread safety | ReadSafe |
---|---|
Category | State |
Loaded/Saved | true |