Skip to content

SeinARTS Fog Of War

Class · USeinFogOfWarSettings : USeinSettings

Parent: Sein Settings

#include "Settings/SeinFogOfWarSettings.h"

Fog of war settings: the fog class, vision layers and update rates.

TSoftClassPtr<USeinFogOfWar> FogOfWarClass

Editable in defaults and on instances · Saved to config

Which fog-of-war implementation the game uses. The fog reader library, the editor bake button, and the cross-module line-of-sight resolver all route through this class; the rest of the framework knows nothing about how fog works.

The default is a single-layer 2D grid with symmetric-shadowcast visibility and a height-aware true-line-of-sight model (elevation-aware true-sight). Subclass it or replace it entirely without touching any other framework code — fog is independent of navigation.

Set this to None to turn fog OFF: nothing is hidden and every unit is always visible. A one-time on-screen warning fires while it is off (suppress it in Editor Preferences).

TArray<FSeinVisionLayerDefinition> VisionLayers

Editable in defaults and on instances · Saved to config

Extra vision channels beyond plain sightlines, so a game can model things like thermal or radar detection separately. There are exactly six slots, a count the framework enforces.

The built-in “Normal” visibility layer is NOT one of these — it is always present. These six slots are for additional channels a game needs: Stealth, Thermal, Radar, Detector, Acoustic, Infrared, and the like. All six ship disabled; opt in by naming and enabling the slots you use.

How the layers match up: a vision stamp emits onto whichever layers its mask sets (plain visibility, plus any of these six); an entity is seen on whichever layers its own visibility mask sets; and an entity is visible to an observer when one of that observer’s stamps covers the entity’s cell on a layer both masks share. In other words, matching is by bit, not by name — the names are only for Blueprint queries and the debug viewer.

Renaming a slot is safe. Reordering or inserting in the middle shifts every higher bit and breaks replays and saves — only append or rename.

int32 VisionTickInterval · default 3 · min 1, max 60

Editable in defaults and on instances · Saved to config

How often vision is recomputed, in simulation ticks. A value of N means fog updates every Nth tick — for example 3, at a 30 Hz sim, gives 10 Hz fog. Higher values are cheaper because the vision math runs less often, at the cost of a little more lag as units enter and leave sight. Around 15 Hz and up the lag is imperceptible; below about 5 Hz it starts to feel stuttery. Every client must use the same value, so this is a build-wide setting, never per-machine.

float FogRenderTickRate · default 10.0f · min 1.0, max 60.0

Editable in defaults and on instances · Saved to config

How often the render-side fog readback updates, in hertz. This is separate from Vision Tick Interval: it only drives the debug visualization and UI readback, never sim state. The simulation path stays deterministic; this render path runs on wall-clock time and can lag freely.