[=;586832]
Since the SoundClasses property of FAudioDevice is now private, what is the new way (in C++) to change the volume of all sound classes ?
My old code looks like this :
FAudioDevice* AudioDevice = GEngine->GetMainAudioDevice();
for (auto i = AudioDevice->SoundClasses.CreateIterator(); i; ++i)
{
USoundClass* SoundClass = i.Key();
SoundClass->Properties.Volume = MasterVolume;
}
[/]
You already found it, but linking to the post discussing this topic: Stop using private variables in virtual functions please! - Feedback & Requests - Epic Developer Community Forums!