Saving and JSON
The plugin applies nothing until a player changes a setting, then saves what changed. It never writes your Game class, your config files or your assets: what the engine saves by itself stays the engine's (below), and everything else goes to the plugin's own files, or to your own save.
On this page
Where settings are saved
Project Settings > Behaviour > Storage:
| Value | Saves |
|---|---|
| Auto (default) | Readable JSON files under Saved/ on desktop, the platform's save system elsewhere |
| Files | Always JSON files under Saved/ |
| Save Slots | Always the platform's save system (Save Game To Slot) |
| Custom | Your class loads and saves the JSON text (below) |
| None | No file of its own: your game keeps the JSON text in its own save |
The files: Machine.json (display, graphics, audio: per computer), User0.json (player 1's controls, gameplay, accessibility, language and key bindings), User1.json, User2.json... for the other split-screen players. Writes are grouped after a short delay; Save Settings Now writes at once. In several Play In Editor windows, only the first writes files. A file from a newer version of the game keeps the values it does not know aside instead of dropping them.
What the engine saves
Some settings belong to the engine, and the plugin changes them through the engine's own API, which saves them where it always does, whatever the Storage:
- window mode, resolution, monitor, frame rate limit, VSync, the scalability levels and the benchmark's results: the engine's Game User Settings, in
Game;User Settings. ini - the graphics API chosen for the next start (
[D3) and the language (the engine's culture setting), also inDRHIPreference] Game;User Settings. ini - the keys of player-mappable actions: Enhanced Input's user settings, which the engine saves in their own save slot when they change (none while Manage Key Bindings is off: Input).
The plugin's own documents keep the player's choices too: when Game was deleted or reset, they are applied again at the next start.
Backup with JSON
Every setting and key binding can be written as one JSON document ("format": "neo-settings/) and read back:
- Export Settings To Json returns the text; Import Settings From Json restores it and returns what was applied, rejected (out of bounds, a reserved key) and unknown. Values are always bounded by the recipes, so an edited or old file cannot break the game.
- Export Settings To File and Import Settings From File do the same with a file (empty path:
Saved/).Neo Settings/ Export. json - The Gameplay page has Export Settings and Import Settings buttons for players on desktop (file and clipboard).
#include "NeoSettingsLibrary.h"
FString SaveSettingsIntoMySave()
{
// Every setting and key binding as one JSON text: keep it in your own save.
return UNeoSettingsLibrary::ExportSettingsToJson();
}
void LoadSettingsFromMySave(const FString& SettingsJson)
{
// Values are bounded by the recipes: an old or edited text never breaks the game.
const FNeoSettingsImportResult Result = UNeoSettingsLibrary::ImportSettingsFromJson(SettingsJson);
UE_LOG(LogTemp, Log, TEXT("Settings: %d applied, %d refused, %d unknown"), Result.Applied, Result.Rejected, Result.Unknown);
}Your own save system
- None: the plugin writes no file of its own; store Export Settings To Json in your save and call Import Settings From Json when you load it. The export holds the shared settings and player 1's: the other split-screen players' own values and keys are not in it, so a split-screen game uses Custom. A First Launch Quality other than Engine Default applies again at each start, before your import: keep Engine Default with None, or use Custom.
- Custom: make a Blueprint (or C++ class) based on Neo Settings Storage, implement Load Settings and Save Settings (they receive the scope,
machineoruser, the local player index and the JSON text), and set it as Behaviour > Custom Storage Class. The plugin asks for each document when the settings start and when a player joins, and hands it back about a second after the last change and when the game quits; keep the texts as they are in your save (your own save game's fields, for example).
Other behavior fields
| Field | Default | Meaning |
|---|---|---|
| Apply Saved Settings At Startup | on | Apply the saved choices when the game starts |
| Display Confirm Seconds | 15 | Seconds before an unconfirmed window mode, resolution, monitor or HDR change reverts |
| Pause By Default | off | Open Settings Menu without options pauses a standalone game |
| Editor Apply | Safe Only | In the editor: apply nothing, only what cannot disturb the editor (camera, input, audio volumes), or everything |
| Debug Open Key | none | A key that opens the settings menu anywhere, for development |
Something not as described? Every code the editor shows has its own entry in Troubleshooting.