Posted April 28, 2023 by ctrl.alt.defeat.team
Hello, and welcome back!
Today we will be discussing sound menus and how to set them up! At first I was really nervous to do this one as I thought I was going to have to go back through all of our play sound nodes to adjust them after setting this up but unreal has a convenient sound class system , so all I needed to do was adjust all the sound cues to use that class. Thankfully we did not have too many cues yet! However, I wanted the menu to tell the user which level was already selected and that was more challenging task.
I ended up making a list where each index of the list corresponded to 0-Master, 1-Music, 2-SFX. Within the array each index holds and int that represents its level of volume. I can then reference that list to set the appropriate highlighting on the buttons for the user experience. The main issues were that I couldn't get the controller to operate sliders as well as buttons. Sliders would have provided more precise controls to the volumes. I have not given up on it yet. This month I plan to learn a lot more about widgets and using gamepads with them.