Skip to content

Sein Terrain Type Definition

Struct · FSeinTerrainTypeDefinition

#include "Data/SeinTerrainTypeDefinition.h"

One designer-configurable terrain type. Authored in plugin settings (USeinLevelSettings::TerrainTypes), alongside the resource catalog and the nav / vision layer definitions.

FGameplayTag TerrainTag

Editable in defaults and on instances · Blueprint read-only · Saved to config

Identity tag (author under SeinARTS.Terrain.*). The STABLE key games map their own interpretation from (a game might rate how well a road protects a unit). Nav reads NavCost directly, no tag needed. Also the key terrain volumes reference to stamp this type.

int32 NavCost · default 1 · min 1, max 254

Editable in defaults and on instances · Blueprint read-only · Saved to config

ROUTING dial — A* path cost. 1 = normal; higher = the pathfinder AVOIDS this terrain (routes around it when a cheaper way exists). This is independent of speed: it changes WHICH path, not how fast the unit traverses. A cell is NEVER made impassable via cost — use blocking geometry or a per-agent BlockedTerrainTags filter for that, so it’s clamped to [1, 254] (0/255 are the bake’s blocked sentinels). Example: an exposed road → low SpeedMultiplier impact but a HIGH NavCost so units prefer to skirt it.

FFixedPoint SpeedMultiplier · default FFixedPoint::One

Editable in defaults and on instances · Blueprint read-only · Saved to config

SPEED dial — traversal speed multiplier, INDEPENDENT of NavCost. 1 = normal; <1 slower (mud, deep snow), >1 faster (roads). A unit’s effective top speed while on this terrain = its authored Speed × this. Floored at 0.05 at runtime so it can never freeze a unit. Routing (NavCost) and speed are separate on purpose: you don’t walk slower on a road, but you might still route around it. Default 1.

FFixedPoint VisionMultiplier · default FFixedPoint::One

Editable in defaults and on instances · Blueprint read-only · Saved to config

Scales the sight radius of a unit standing on this terrain. 1 is normal; below 1 shortens vision (a unit in a forest sees less far), above 1 extends it (a hilltop). Floored at 0.05. It changes only the standing unit’s own sight, not what is hidden behind the terrain. Independent of the other dials. Default 1.

TArray<FSoftObjectPath> PhysicalMaterials

Editable in defaults and on instances · Blueprint read-only · Saved to config

Physical materials that resolve to this terrain type at bake. Paint a landscape layer or assign a mesh material whose physical material is listed here, and the bake classifies those cells as this type. A Sein Terrain Volume always overrides the material-derived type.

FLinearColor DebugColor · default FLinearColor::White

Editable in defaults and on instances · Blueprint read-only · Saved to config

Color used by the terrain debug overlay.