NeoSettingsDocsNeo Async Loading Screen
CustomizeRecipes

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/NeoSettings/catalog/); 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
  1. Files and layers
  2. Syntax
  3. Pages and sections
  4. Settings
  5. Bindings
  6. Controls pages and input
  7. Conditions and facts
  8. Menus
  9. Loading blocks (read by Neo Async Loading Screen)
  10. Texts and translation keys
  11. Styles

Files and layers

Put your recipes in your project's Config/NeoSettings/ folder: the plugin reads every .hset file directly in it (not its subfolders) and packages them with your game. Translations go in Config/NeoSettings/loc/ (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):

  1. the plugin's catalog, image-technology providers and styles;
  2. what you set in Project Settings (converted to a recipe layer);
  3. your Config/NeoSettings/ files, sorted by path;
  4. 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:

Recipe
hset 1
namespace "MyGame.Settings"   // the translation namespace of this file's texts

import "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.motion_blur; 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

Recipe
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

Recipe
<kind> <id> ["Label"] { properties }
kind: toggle | slider | choice | button | info
PropertyOnMeaning
desc "…"allDescription shown in the detail panel
keywords "a, b"allExtra search words (translated)
default <value> [on <platform>]toggle, slider, choiceDefault 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>sliderBounds (required) and the step of the keyboard and controller
format <fmt>slider, infoint, decimal1, decimal2, percent (0..1 shown as 0-100 %), percent100, degrees, ms, fps, nits, multiplier, or a pattern "{0} px"
options { … }, options from <source>choiceStatic options, or options given at run time (see below)
bind <binding>all but infoWhat the value drives (see Bindings); default bind store
apply instant|confirm|restart|pendingtoggle, slider, choiceconfirm: reverts after a countdown unless kept; restart: next launch; pending: waits for Apply
scope machine|usertoggle, slider, choiceOverrides the page's scope
visible when <condition>allHidden while false
enabled when <condition> [else "reason"]allGrayed with the reason while false (the value stays applied); several lines: the first failing reason shows
available when <condition>allHidden while false: a capability gate (the vendor plugin is absent)
force <value> when <condition> ["reason"]toggle, slider, choiceWhile 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>]allA sentence added to the detail panel while its condition holds
cost [gpu <lvl>] [vram <lvl>] [cpu <lvl>]allnone, 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
advancedallListed under the section's "Advanced" header
optinallHidden unless the project enables it (enable <id>, or Enabled Optional Settings): a setting only your game applies
preview <kind> ["file"]allbrightness, subtitles, colorblind, image "file.png" in the detail panel
icon "<icon>", order <n>, after <id>, before <id>allIcon and position in its section
action <name> [args], confirm "question"buttonA built-in action or event "<name>", asked first when confirm is given
value from <source>infoRead-only text
restarttoggle, slider, choiceSame as apply restart
label "…", key "…"allThe 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:

Recipe
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>:

Recipe
override gameplay.fov {
    range 70 .. 110
    default 80
}
hide graphics.film_grain
enable gameplay.head_bob

bind 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.

Recipe
override access.ui_scale {
    bind store
    default 1
}

Bindings

Recipe
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]
  • cvar writes the console variable at the GameOverride priority by default; a reset unsets it. map translates option ids or toggle values; scale multiplies a slider's value.
  • reflect calls a getter and a setter (UFUNCTIONs) of one of your subsystems; extra param=value fill other parameters. Accepted from your project's recipes only, never from mods. With scope localplayer, each split-screen player has their own value.
  • driver: the plugin's drivers are listed below; register your own in C++ (Drivers).
DriverKindDrives
display.monitor, display.window_mode, display.resolutionchoiceMonitor, window mode (fullscreen, borderless, windowed), resolution ("1920x1080")
display.vsync, display.dynamic_resolution, display.hdrtoggle
display.frame_limitchoice or sliderFrames per second, 0 = unlimited
display.hdr_paper_whitesliderNits
display.brightnessslider0..1, 0.5 neutral: the exposure of the final image, per view
display.ui_scale, display.safe_zonesliderInterface Size (1..2), Screen Margins (0.8..1)
display.screen_profilechoiceauto, desktop, handheld, tv
display.fps_counterchoiceoff, fps, fps_ms
post.gammaslider1 neutral: the game's gamma, per view (never the menu's)
post.scaleslider or togglefield=motion_blur|film_grain|chromatic_aberration|vignette|depth_of_field|bloom|lens_flares: multiplies your own post-process value, per view
render.rhichoicedx12, dx11, vulkan (restart)
render.quality_preset, render.scalabilitychoice or sliderOverall scalability; one group (group=view_distance|shadow|global_illumination|reflection|anti_aliasing|texture|effects|post_process|foliage|shading|landscape)
render.resolution_scale, render.sharpnessslider
render.upscaler, render.upscaler_mode, render.frame_generation, render.latency, render.ray_reconstructionchoice or toggleSee Upscalers
render.lighting_method, render.lumen_hwrtchoice, toggleSee Presets and Rendering
audio.master, audio.channelslider0..1; name=<channel> (Project Settings > Audio Channels)
audio.output_device, audio.background, audio.dynamic_rangechoice, toggle, choice
input.mouse_sensitivity, input.gamepad_sensitivityslideraxis=both|x|y, a multiplier
input.mouse_invert_y, input.gamepad_invert_ytoggle
input.gamepad_deadzonesliderstick=left|right, 0..0.5
input.vibrationslider0..1
input.glyphschoiceauto, xbox, playstation, nintendo, generic
camera.fov, camera.shakesliderDegrees (horizontal at 16:9); 0..1
access.colorblind, access.colorblind_strengthchoice, slider
access.subtitles, access.reduce_motion, access.high_contrasttoggle
locale.culturechoiceoptions 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_levels (low … cinematic), upscalers, upscaler_modes, framegen_modes, latency_modes, or a driver's name. Info values (value from …): gpu_name, rhi_name, render_resolution, output_resolution, vram_total. Button actions: reset_page, reset_all, apply, revert, benchmark, calibrate_brightness, export_settings, import_settings, open_page <id>, event "<name>" (your game gets it through the settings subsystem's On Custom Event).

Controls pages and input

Recipe
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.upscaler, or a setting of the same page by its short name); an identifier compared with a choice is an option id: 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.

Recipe
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.quit

An item's full id is <menu>.<item> (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.

Recipe
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):

TextKey
Page, sectionpage.<page>, section.<page>.<section>
Setting label, description, keywords<setting>.label, .desc, .keywords
Option label<setting>.opt.<option>
enabled … else reason (n from 0)<setting>.reason.<n>
force reason, note<setting>.force.<n>, <setting>.note.<n>
Button question<setting>.confirm
Menu title, item label, item question, item reasonmenu.<menu>.title.<n>, menu.<menu>.<item>.label, .confirm, .reason.<n>
Loading tiploading.tip.<n>
Conflict group label, input action label, input categoryinput.group.<id>, input.action.<pattern>, input.category.<name>
Style labeltheme.<id>
strings entryui.<key>

strings { <key> "<English text>" … } holds the texts of the menu's chrome (buttons, dialogs, prompts): the plugin's are in catalog/strings.hset, 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.