does anyone have an idea for creating audio channels like “Ambient”,“Music”, “SFX”, “interface” for the player? I have no idea, how this could be realized.
I don’t want a code, but just an idea.
Regarding, that the volume of every sound is controlled by the setting of the corresponding audio source, I have no idea, how a general volume controller could regulate the volume of multiple sounds…
Unity doesn’t really provide much functionality for this, so you’ll really have to do it yourself. I’d register every audiosource with a central ‘manager’ script, which can adjust all the audio-sources of a given ‘type’ at the same time.
So, what you’d do is whenever you create a new audioSource, add that to a specific list of sources (Music, Interface, SFX etc.), and adjust its volume so that it reflects the current value for that list.