Recipes
The whole menu is described in plain-text recipes (.hset files): pages, sections and settings, what each setting drives, its conditions and presets, the controls pages, the main and pause menus and the styles (and the loading blocks Neo Async Loading Screen reads). The plugin's own catalog is written this way (Resources/); your recipes are read after it and change it without editing it. Recipes are read at run time by the plugin (no build step) and reloaded in the editor while you edit them.
On this page
Files and layers
Put your recipes in your project's Config/ folder: the plugin reads every .hset file directly in it (not its subfolders) and packages them with your game. Translations go in Config/ (see Localization). You can also import a .hset file in the Content Browser: it becomes a Neo Settings Recipe asset that re-imports itself when the file changes; list it in Project Settings > Content > Recipes.
The layers are read in this order; a later declaration with the same id merges into the earlier one (the properties it states replace the earlier ones; children are added):
- the plugin's catalog, image-technology providers and styles;
- what you set in Project Settings (converted to a recipe layer);
- your
Config/files, sorted by path;Neo Settings/ - your recipe assets, in the order of Project Settings > Content > Recipes.
Errors and warnings go to the Neo Settings page of the Message Log after each load, with the file, line and column, the cause and what to write instead; their codes are listed in Troubleshooting. A mistake never stops the game: the statement in error is left out and the rest loads.
A file starts with:
hset 1
namespace "MyGame.Settings" // the translation namespace of this file's textsimport "other.hset" reads another file first (relative to this one). version <n> and rename <old-id> <new-id> keep players' saved values when you rename a setting.
Syntax
A file is a list of statements: name arguments… [ { statements } ], one per line (or separated by ;). A block { starts on the line of its statement. Comments: // to the end of the line and /* block */. Strings are in double quotes. Numbers may carry a unit: 90, 0.5, 120ms, 0.25s, 15%, 90deg. Colors: #RRGGBB or #RRGGBBAA.
Ids. A page id is a simple name. A setting or section id written without a dot belongs to its page: toggle motion_blur inside page graphics is graphics.; an id with a dot is absolute. Ids are the keys of the saved files: lower case, digits and _ are recommended, and never rename one without a rename line.
Pages and sections
page network "Network" {
icon "controls" // an icon of the plugin: display, graphics, audio, controls, gameplay, accessibility...
order 75 // tab order: the shipped pages use 10 to 80
scope user // default scope of its settings: user (per player) or machine (per computer)
visible when platform.desktop
section voice "Voice Chat" {
advanced // listed under an "Advanced" header
// settings…
}
}Declaring an existing page id (page gameplay { … }) adds to that page.
Settings
<kind> <id> ["Label"] { properties }
kind: toggle | slider | choice | button | info| Property | On | Meaning |
|---|---|---|
desc "…" | all | Description shown in the detail panel |
keywords "a, b" | all | Extra search words (translated) |
default <value> [on <platform>] | toggle, slider, choice | Default value; several lines with on give platform defaults (desktop, console, handheld, mobile, windows, linux, mac, xbox, playstation, switch, steamdeck). Without a default, the engine's value at startup is the default. |
range <min> .. <max>, step <n> | slider | Bounds (required) and the step of the keyboard and controller |
format <fmt> | slider, info | int, decimal1, decimal2, percent (0..1 shown as 0-100 %), percent100, degrees, ms, fps, nits, multiplier, or a pattern "{0} px" |
options { … }, options from <source> | choice | Static options, or options given at run time (see below) |
bind <binding> | all but info | What the value drives (see Bindings); default bind store |
apply instant| | toggle, slider, choice | confirm: reverts after a countdown unless kept; restart: next launch; pending: waits for Apply |
scope machine|user | toggle, slider, choice | Overrides the page's scope |
visible when <condition> | all | Hidden while false |
enabled when <condition> [else "reason"] | all | Grayed with the reason while false (the value stays applied); several lines: the first failing reason shows |
available when <condition> | all | Hidden while false: a capability gate (the vendor plugin is absent) |
force <value> when <condition> ["reason"] | toggle, slider, choice | While the condition holds, the row is grayed and shows and applies this value; the player's own value comes back after. Several lines: the first that holds wins. See Presets and Rendering. |
note "Sentence." [when <condition>] | all | A sentence added to the detail panel while its condition holds |
cost [gpu <lvl>] [vram <lvl>] [cpu <lvl>] | all | none, minor, moderate, major: shown as pips in the detail; on a handheld, the focused row marks its highest level after its label, except a toggle that is off or a choice set to an option off or none |
advanced | all | Listed under the section's "Advanced" header |
optin | all | Hidden unless the project enables it (enable <id>, or Enabled Optional Settings): a setting only your game applies |
preview <kind> ["file"] | all | brightness, subtitles, colorblind, image "file.png" in the detail panel |
icon "<icon>", order <n>, after <id>, before <id> | all | Icon and position in its section |
action <name> [args], confirm "question" | button | A built-in action or event "<name>", asked first when confirm is given |
value from <source> | info | Read-only text |
restart | toggle, slider, choice | Same as apply restart |
label "…", key "…" | all | The label (when not after the id) and an explicit translation key |
Static options, each <id> ["Label"] [ { … } ] with its own available when, enabled when … else and set lines:
page gameplay {
choice camera_view "Camera View" {
default third
options {
third "Third Person"
first "First Person"
cinematic "Cinematic" { available when platform.desktop }
top_down "Top Down" { enabled when not game.in_tutorial else "Unlocked after the tutorial." }
}
}
}Presets. An option with set <setting> <value> lines makes the choice a preset: picking it writes those settings. When the values match no option, the choice shows its fallback <option> (Custom). A later layer's set line for the same setting replaces the earlier one; unset <setting> removes an inherited line; a new option adds a level. Loading a saved preset never applies its set lines again.
Values: true or false for toggles, numbers for sliders (units are dropped: 90deg is 90), option ids for choices.
Change a shipped setting with override (its kind stays, and its binding unless the override has a bind line; new label and desc lines give it your own words, see Localization); hide one with hide <id> (a section or a page id hides all of it; a hidden setting keeps its value and still applies it); turn on an optional one with enable <id>:
override gameplay.fov {
range 70 .. 110
default 80
}
hide graphics.film_grain
enable gameplay.head_bobbind store in an override takes a shipped setting away from the plugin's driver: the value is still shown, bounded, saved and reported (On Setting Changed), and only your game applies it, for example your own interface scale. A setting whose default is the engine's (engine in the Catalog) needs a default line in the same override: without the driver, nothing reads the engine's value.
override access.ui_scale {
bind store
default 1
}Bindings
bind store // stored and saved; your game reads it
bind driver <name> [param=value …] // a driver of the plugin, or one of yours (see Drivers)
bind cvar <cvar.name> [priority game|override|current] [scale <k>] [map { <value> <cvar value> … }]
bind reflect "<class path>" get <Getter> set <Setter> [scope engine|gameinstance|localplayer|world]cvarwrites the console variable at theGameOverridepriority by default; a reset unsets it.maptranslates option ids or toggle values;scalemultiplies a slider's value.reflectcalls a getter and a setter (UFUNCTIONs) of one of your subsystems; extraparam=valuefill other parameters. Accepted from your project's recipes only, never from mods. Withscope localplayer, each split-screen player has their own value.driver: the plugin's drivers are listed below; register your own in C++ (Drivers).
| Driver | Kind | Drives |
|---|---|---|
display., display., display. | choice | Monitor, window mode (fullscreen, borderless, windowed), resolution ("1920x1080") |
display.vsync, display., display.hdr | toggle | |
display. | choice or slider | Frames per second, 0 = unlimited |
display. | slider | Nits |
display. | slider | 0..1, 0.5 neutral: the exposure of the final image, per view |
display., display. | slider | Interface Size (1..2), Screen Margins (0.8..1) |
display. | choice | auto, desktop, handheld, tv |
display. | choice | off, fps, fps_ms |
post.gamma | slider | 1 neutral: the game's gamma, per view (never the menu's) |
post.scale | slider or toggle | field=motion_: multiplies your own post-process value, per view |
render.rhi | choice | dx12, dx11, vulkan (restart) |
render., render. | choice or slider | Overall scalability; one group (group=view_) |
render., render. | slider | |
render., render., render., render., render. | choice or toggle | See Upscalers |
render., render. | choice, toggle | See Presets and Rendering |
audio.master, audio.channel | slider | 0..1; name=<channel> (Project Settings > Audio Channels) |
audio., audio., audio. | choice, toggle, choice | |
input., input. | slider | axis=both|x|y, a multiplier |
input., input. | toggle | |
input. | slider | stick=left|, 0..0.5 |
input. | slider | 0..1 |
input.glyphs | choice | auto, xbox, playstation, nintendo, generic |
camera.fov, camera.shake | slider | Degrees (horizontal at 16:9); 0..1 |
access., access. | choice, slider | |
access., access., access. | toggle | |
locale. | choice | options from cultures |
A setting bound to a driver nobody provides is hidden, with a warning. In this version the recipe check does not know the drivers your game registers in C++: their bind driver lines are reported as HS412 warnings, and the settings work once the driver is registered (Drivers). Option sources (options from …): monitors, resolutions, frame_limits, audio_devices, cultures, rhis, quality_ (low … cinematic), upscalers, upscaler_, framegen_, latency_modes, or a driver's name. Info values (value from …): gpu_name, rhi_name, render_, output_, vram_total. Button actions: reset_page, reset_all, apply, revert, benchmark, calibrate_, export_, import_, open_page <id>, event "<name>" (your game gets it through the settings subsystem's On Custom Event).
Controls pages and input
page controls "Controls" {
bindings keyboard "Keyboard & Mouse" { device kbm; slots 2 }
bindings gamepad "Controller" { device gamepad; slots 1 }
}
input {
reserve Escape Gamepad_Special_Right F13 // never bindable
context "/Game/Input/IMC_Default" // listed even before the game pushes it
category "Movement" order 10
hide action "IA_Debug*" // glob on the action asset's name
label action "IA_Jump" "Jump"
remap_unmappable true // also list actions that are not player-mappable
group on_foot "On Foot" { context "/Game/Input/IMC_Default" }
group vehicle "Vehicle" { context "/Game/Input/IMC_Vehicle" }
shared { context "/Game/Input/IMC_MouseLook" }
}Rows come from your Enhanced Input contexts; conflict groups are explained in Input.
Conditions and facts
visible when, enabled when, available when, force … when, note … when, option gates and menu items take a condition:
- comparisons
==,!=,<,<=,>,>=,x in [a, b];and(&&),or(||),not(!); parentheses; arithmetic+ - * /; - a setting (
graphics., or a setting of the same page by its short name); an identifier compared with a choice is an option id:upscaler graphics.;upscaler == dlss - a fact:
platform.*(desktop,console,handheld,mobile,windows,linux,mac,xbox,playstation,switch,steamdeck),cap.*(capabilities:cap.hdr,cap....),dlss. supported input.*(gamepad,keyboard,mouse),screen.*(desktop,handheld,tv),menu.*(ingame,mainmenu,compact,detail_),on_ demand project.*(main_menu,pause_menu, and the rendering facts of Presets and Rendering),game.*(your Set Menu Fact flags),net.*(standalone,client,host),player.*(index,primary); - functions
supported(<provider>[, <mode>]),active(<provider>),changed(<setting>).
Unset game.*, net.* and player.* facts read false. Another unknown path reads false with a warning. In split-screen, player.*, menu.*, input.*, game.* and net.* are each player's own. Never gate Interface Size or Screen Type on menu.*: the row would vanish under the player's focus.
Menus
menu main | pause {
title "<text>" [when <condition>] // several lines: the first whose condition holds
item <id> ["<Label>"] {
action play | resume | settings [<page>] | open_level "<map path>" | restart | main_menu | quit | event "<name>"
arrows "<left event>" "<right event>" // Left and Right on the item send these events
confirm "<question>" // asks first, focus on Cancel
destructive // destructive style, never the default focus
visible when <condition>
enabled when <condition> [else "<reason>"]
order <n> // shipped items use 10, 20, 30...
}
}
override menu main | pause { item <id> { … } } // changes items an earlier layer declared
hide <menu>.<item> // hides one item: hide pause.quitAn item's full id is <menu>. (pause.quit). An item without an action is an error; resume or main_menu in the main menu and play in the pause menu are warnings (HS422). A layer that states title lines replaces the earlier titles. arrows makes the item a selector: Left and Right on it fire On Menu Event with the left or the right event, without its question, while choosing it still runs its action. See Menus and Flow.
Loading blocks (read by Neo Async Loading Screen)
Neo Settings draws no loading screen. A loading block describes the loading screens of Neo Async Loading Screen, a separate plugin, which reads the blocks of every layer through its bridge (Compatibility); without that plugin, they are checked (HS423) and nothing else.
loading {
image "<file or /Game/... path>" // repeatable: one is picked per load
tip "<text>" // repeatable: one is shown per load
min_time 0.5s // 0 to 10 s
max_time 20s // 1 to 120 s
hold streamed | pawn | none // repeatable
}A layer that states image, tip or hold lines replaces those of the earlier layers; hold none clears them. See Loading screens with Neo Async Loading Screen.
Texts and translation keys
Every text gets the file's namespace and a stable key, so translators work from .po files (see Localization):
| Text | Key |
|---|---|
| Page, section | page., section. |
| Setting label, description, keywords | <setting>., .desc, .keywords |
| Option label | <setting>. |
enabled … else reason (n from 0) | <setting>. |
force reason, note | <setting>., <setting>. |
| Button question | <setting>. |
| Menu title, item label, item question, item reason | menu., menu., .confirm, . |
| Loading tip | loading. |
| Conflict group label, input action label, input category | input., input., input. |
| Style label | theme. |
strings entry | ui. |
strings { <key> "<English text>" … } holds the texts of the menu's chrome (buttons, dialogs, prompts): the plugin's are in catalog/, and a project may restate any key. A map's name on Neo Async Loading Screen's screen is the key level_<map short name>.
Styles
theme, override theme and variant high_contrast blocks: see Styles.
Something not as described? Every code the editor shows has its own entry in Troubleshooting.