Creating an options menu, specifically the audio section.
Can’t seem to find any examples that provide direction on how to go about changing the volume of a specific USoundClass or better yet tying the volume of a USoundClass to the configuration of the game.
Anyone out there who has done this have any suggestions?
In case someone else stumbles upon this and is wondering, the best solution I found boils down to:
ConstructorHelpers::FObjectFinder <USoundClass> sfxObj(TEXT("/Path/To/Your/Sound/Class"));
if (sfxObj.Succeeded()) {
SFXSoundClass = sfxObj.Object;
}
... later ...
if (SFXSoundClass != NULL) {
SFXSoundClass->Properties.Volume = 0.5f;
}