Setting Up SGGameUserSettings
Setting SGGameUserSettings
as the default Game User Settings Class
is very straightforward. You can do this by navigating to Project Settings > Engine > General Settings > Default Classes > Advanced > Game User Settings Class
. Once you change the default Game User Settings Class
the Unreal Editor will prompt you with Restart required to apply new settings
. For the changes to take effect, click on the Restart Now
button and wait for the editor to reopen.
tip
For greater control and customization, consider extending the SGGameUserSettings.
important
Currently, setting SGGameUserSettings
or a subclass of it as the default
Game User Settings Class
is not a strict requirement. However, if you intend
to use any
SGGameUserSettings-related SenseGlove console command
it becomes mandatory. If not set, calling any SGGameUserSettings-related
SenseGlove console command will cause your simulation or editor to crash.
Extending SGGameUserSettings
Follow these steps to extend and set up your own version of SGGameUserSettings
:
- In the Content Browser, click the
+ Add
button, then selectBlueprint Class from the menu
. Alternatively, right-click inside the Content Browser and chooseBlueprint Class
from the context menu.
- A dialog will appear asking you to choose a parent class. Click on the
ALL CLASSES
section to expand the list of available classes.
- In the expanded
ALL CLASSES
section, start typingSGGameUserSettings
in the Search box. WhenSGGameUserSettings
appears, select it and click theSelect
button to create your new Blueprint class based on it.
- After returning to the Content Browser, the Unreal Editor will prompt you to rename
NewBlueprint
to your desired class name. You can rename the class at any time by pressingF2
or by right-clicking on it and selectingRename
from the context menu.
- Once you have renamed the
NewBlueprint
class to your desired name, click onSave All
to save the new class to disk.
- Finally, set your newly created subclass of
SGGameUserSettings
as the defaultGame User Settings Class
. You can do this by navigating toProject Settings > Engine > General Settings > Default Classes > Advanced > Game User Settings Class
. Once you change the defaultGame User Settings Class
the Unreal Editor will prompt you withRestart required to apply new settings
. For the changes to take effect, click on theRestart Now
button and wait for the editor to reopen.