Audio Settings
- Cody Mader

- Apr 18, 2021
- 1 min read
Volume control is an important thing for options in a game. Since I was working with UI the option settings came down to being my job. Setting up the sliders in Unreal was quite simple however linking them to the actual volumes was a bit more complicated. I had to work with the sound manager in Unreal in order to get it all working and integrated. Quickly I had two main issues pop up, the first being saving the volume set for when the game changes levels, and the second was saving the volume when set in the pause options.
The first issue took a bit of time and research to solve. Eventually, I figured out that if I use a game instance I can store variables between levels. This was simple enough but when I set up the blueprint to set the sliders to the stored variables I wasn't actually getting the right values. With the help of Justin, we were able to get the variables to actually load and set the sliders accordingly. The other issue was that I was creating and deleting the pause UI whenever you swapped menus. This was a simple fix of creating all the pause menus and setting their visibility to hidden and using references to swap their visibility as needed.

Comments