v0.0.3 Settings... but at what cost?


The Problem:

A settings menu is really important for any video game. Being able to change the volume or display settings can make or break an experience for some people. I was tasked with making the settings menu for Sod & Steel. I did some research and found out that there's a premade settings class with everything I need! The Unreal documentation even says it stores (for example) graphics and sound settings. I get the display settings in, but unfortunately for me, things will never go that easily. Turns out the Unreal documentation lied. It does NOT contain settings for sounds. How can I work around this issue?

The Solution:

It's rather simple! I can just make a child class derived from the base settings class and add in my own settings variables. Now I just have to connect them to the settings widget and... it doesn't work. The volume doesn't get changed. I have no idea how Unreal's sound system works. Oh boy. Time for some research! Hmm... it seems like there's just a couple of functions I need to use to do this. I do need to pass in some new classes I haven't worked with before, Sound Class and Sound Mix. I need to create my own versions of these though if I want to make it work right, but that's fairly easy. I get them put in and... it still doesn't work. I do a little more research and figure out that I need to attach a Sound Class to each individual audio file so they can link to the Sound Mix class I made. Finally, the audio settings work. I had originally estimated this to take me 4 hours of work, but in the end it took me about 10 hours. I have learned to never underestimate a task you know nothing about.

Get Sod & Steel

Leave a comment

Log in with itch.io to leave a comment.