- Home /
Can I know why I can't control volume of audiomixergroup without exposing parameters?
It is engine-wise technical question.
When I see, AudioMixer window has a trace about which parameter is from which AudioMixerGroup. It knows what the value is modifying (eg. Volume, Effect, etc.).
But in script, mixer.GetFloat() and mixer.SetFloat() is only giving me a float value to modify; it has no trace about what this value is actually modifying or which audiomixergroup it came from. As it was shown on the AudioMixer window, editor knows them; why not script?
You might be wondering, "You gave those exposed parameters a name and you know which is which.", and that is very true. However, that fact is not necessary for what I want to implement. I want to bind the volume to a runtime-modifiable controller, regardless of how many audiogroups there are or whether I forgot to expose them.
If it was less important than other engine features so it was ignored, that is a valid reason,
if it was simply a thing you never thought that important, that is also a valid reason, or even,
if it was imposible or less secure due to any reason, perfectly working for me. For now, I know nothing about why, and it makes me very curious.
Would you please tell me why?