Quick Start
This guide walks you through creating a shadow quality setting that automatically saves and applies to Unreal's graphics system. This tutorial demonstrates the simplest possible setup using a built-in console variable.
Prerequisites
- Unreal Engine 5.4+
- Basic knowledge of UMG (Unreal Motion Graphics)
- Auto Settings 2 installed (see Installation Guide)
Step 1: Create a Reusable Setting Type
Create a single Setting Type asset that can be used for all console variable settings:
- In the Content Browser, right-click and select Blueprint Class
- Choose
Setting Typeas the parent class - Name it
Setting_Global - Open the Blueprint - the strategies are already configured by default:
- Application Strategy:
Console Variable Setting Application Strategy(applies changes to console variables) - Persistence Strategy:
Config Setting Persistence Strategy(saves to .ini config files)
- Application Strategy:
- Save the asset
This single Setting Type can be used for any console variable setting. You'll specify which console variable to use when configuring individual widgets.
Step 2: Add Shadow Quality Widget to Your UI
Add a dropdown widget for shadow quality control to your existing settings menu:
- Open your settings menu widget in the UMG editor
- In the Widget Palette, expand Auto Settings
- Drag ComboBox Setting Widget onto your menu
- Configure the Widget in the Details panel:
- Set Setting Type to your
Setting_Globalasset - Set Console Variable Name to
sg.ShadowQuality - Set Auto Apply to True (applies changes immediately)
- Set Auto Save to True (saves automatically)
- Add Options: Low (0), Medium (1), High (2), Epic (3)
- Set Setting Type to your
Setting widgets are abstract base classes requiring Blueprint inheritance. The plugin provides ready-to-use implementations in Plugins/AutoSettings/Content/UI/Settings/ that you can copy and customize. For styled examples, see the example project.
Step 3: Test Your Setting
Test that everything works:
- Play your game and open the settings menu
- Change the shadow quality dropdown - you should see visual changes immediately
- Close and restart your game
- The dropdown should remember its previous selection
Open the console (~) and type sg.ShadowQuality to see the current value! You can also try other scalability settings like sg.ViewDistanceQuality or sg.EffectsQuality using the same Setting_Global asset.