Sein Vision Layer Definition
Struct · FSeinVisionLayerDefinition
#include "Data/SeinVisionLayerDefinition.h"
One designer-configurable N-layer definition.
Configure in Project Settings > Plugins > SeinARTS > Vision Layers. The framework-default “Normal” layer is NOT part of this array — it’s always the V bit, hardcoded. These 6 slots are exclusively for additional layers a game needs beyond generic visibility: Stealth, Thermal, Radar, DetectorPerception, Acoustic, Infrared, etc.
Bit-index stability:
-
bEnabled toggles the slot without shifting bit indices — disabling a layer mid-development is safe.
-
Renaming a slot is safe.
-
Reordering or inserting entries into the middle of the array IS NOT safe (shifts every higher-index slot’s bit, breaking replays + save games). Only append or rename.
Properties
Section titled “Properties”Enabled
Section titled “Enabled”bool bEnabled · default false
Editable in defaults and on instances · Saved to config
Whether Layer Name names this slot. A disabled slot keeps its place, so higher slots don’t shift, but queries by name don’t find it. Its bit still works: stamps and visibility masks that set it see and are seen on it.
Layer Name
Section titled “Layer Name”FName LayerName · default NAME_None
Editable in defaults and on instances · Saved to config
Name used to reference this layer by name in BP queries (e.g. SeinIsCellVisible(…, LayerName)) and the debug viewer. Runtime matching is by BIT, not name: a stamp emits into this layer via its FSeinVisionStamp.LayerMask bit; a target is seen on it when its Fog Visibility Data.FogVisibilityLayerMask shares that bit. Case-sensitive exact match. “Normal” is reserved (it’s the V-bit / default layer, handled by the framework) — a designer naming a slot “Normal” here will be rejected with a log warning at subsystem init. Use project-specific names: “Stealth”, “Thermal”, “Radar”, “DetectorPerception”, etc.
Debug Color
Section titled “Debug Color”FLinearColor DebugColor · default FLinearColor::White
Editable in defaults and on instances · Saved to config
Color the fog-of-war debug viewer uses to paint cells where this layer is set. Presentation only.