Skip to content

SeinARTS Level

Class · USeinLevelSettings : USeinSettings

Parent: Sein Settings

#include "Settings/SeinLevelSettings.h"

Level settings: the level-data substrate, its grid sizes and the terrain palette.

TSoftClassPtr<USeinLevelData> LevelDataClass

Editable in defaults and on instances · Saved to config

Which level-data substrate the whole game bakes and reads from. This is the shared baked grid that navigation and fog-of-war both draw their layers out of, so there is one trace of the level, not one per system. Pick your own subclass to replace the substrate wholesale; nothing else in the framework needs to change.

Set this to None to turn the level substrate OFF — WYSIWYG, but heavy: the Bake Level Data button does nothing, and navigation, baked fog occluders, and the minimap all lose their data. A one-time on-screen warning fires while it is off (suppress it in Editor Preferences).

FDirectoryPath LevelDataSaveFolder

Editable in defaults and on instances · Saved to config

Where baked level-data assets are written. When you press Bake Level Data on a Sein Level Volume, the result — the shared height field plus every layer’s channel (nav, fog of war, and so on) — is saved here as LevelData_<LevelName> and auto-assigned to every level volume on the level.

Default /Game/SeinARTS/LevelData/. Use the content-browser picker to choose any folder under any content mount (/Game/ for project content, /<PluginName>/ for plugin content); it is created if missing. Baked level data is a regenerable, gitignored build artifact, so re-bake after changing this — existing bakes do not move themselves.

TEnumAsByte<ECollisionChannel> BakeTraceChannel · default ECC_Visibility

Editable in defaults and on instances · Saved to config

Which collision channel the bake’s downward ground trace tests against when it samples each cell’s floor height and surface normal. Default Visibility. Point it at a project-specific “ground” channel if your level geometry does not block Visibility. Re-bake after changing. The framework default substrate uses this; a custom substrate may read or ignore it.

FFixedPoint CellSize

Editable in defaults and on instances · Saved to config

How big each navigation grid square is, in world units. The pathfinder works on a 2D grid; pick this to roughly match your smallest unit’s body size.

Rough guides: an infantry-centric RTS wants about 100 (1 m cells); a massive-unit RTS wants about 800 (8 m cells). Smaller cells give finer paths but cost more memory and slower bakes; larger cells are coarser but cheaper. A Sein Level Volume can override this for its own area only (Override Cell Size on the volume).

FFixedPoint MaxStepHeight

Editable in defaults and on instances · Saved to config

The tallest vertical step a unit can climb in one stride, in world units — think “stair height.” At bake time, two adjacent cells whose heights differ by more than this are treated as disconnected (a wall edge), so units won’t path up the step.

A 30 cm value lets units mount curbs but not walls; about 80 cm lets them climb small ledges; 200 cm and up effectively disables the step check. Typical is about half the Cell Size. A Sein Level Volume can override it for its own area.

FFixedPoint VisionCellSize

Editable in defaults and on instances · Saved to config

How big each fog-of-war grid cell is, in world units (a Sein Level Volume can override it for its own area). This is independent of the nav cell size — the fog grid is usually coarser, because vision does not need sub-metre detail, and at bake time it snaps to a whole-number multiple of the shared level grid. Smaller cells give crisper fog edges at higher memory cost; larger cells are cheaper to stamp but chunkier.

TArray<FSeinTerrainTypeDefinition> TerrainTypes

Editable in defaults and on instances · Saved to config

The palette of terrain types the level bake stamps onto every cell once, for other systems to read however they like. Navigation turns a type into a movement cost (the Nav Cost field on each type); a game can turn the same type’s tag into its own rule (how exposed a road is, say) — so one authored road region drives both with no double-authoring, and the framework never learns what the game’s rule is.

Author a type two ways, both of which bake into the same per-cell result: list its physical materials and the ground trace classifies any cell whose surface uses one of them (paint a landscape layer or assign a mesh material — native, no special tool); or drop a Sein Terrain Volume, whose terrain tag and priority override the material-derived type inside its footprint.

Each cell stores a one-byte index. Index 0 is the reserved implicit “Default” type (cost 1, no tag) and is NOT in this array — array slot i is stored as index i+1, mirroring how nav layers reserve bit 0. Reordering or deleting entries only needs a re-bake (the indices live in regenerable baked data, never in saved games), so append or rename freely.

C++ members (5)
  • int32 GetTerrainNavCost(int32 StoredTypeIndex) const; Movement-cost multiplier for a baked per-cell terrain-type INDEX (0 = Default). Centralizes the reserved-0 / array-offset mapping: index 0 (or out of range) → 1; index N → TerrainTypes[N-1].NavCost clamped to [1, 254].
  • int32 GetTerrainTypeIndex(const FGameplayTag& Tag) const; Baked stored INDEX for a terrain Tag (0 = Default / not found). The inverse of the reserved-0 mapping above — used by the bake (terrain volume tag → index) and by nav’s per-agent BlockedTerrainTags filter (tag → index to gate).
  • FFixedPoint GetTerrainSpeedMultiplier(int32 StoredTypeIndex) const; Traversal SPEED multiplier for a baked per-cell terrain-type INDEX (0 = Default). The movement step scales a unit’s effective top speed by this. Index 0 / out of range → 1 (no change). Floored at 0.05 so a misauthored 0/negative can never freeze a unit. Independent of GetTerrainNavCost (routing) — the two dials are separate.
  • FFixedPoint GetTerrainVisionMultiplier(int32 StoredTypeIndex) const; VISION (sight-radius) multiplier for a baked per-cell terrain-type INDEX (0 = Default). Fog of war scales a unit’s vision radius by this while it stands on the terrain. Index 0 / out of range → 1; floored at 0.05. Independent of the other dials.
  • FGameplayTag GetTerrainTag(int32 StoredTypeIndex) const; Identity tag for a baked per-cell terrain-type INDEX (0 = Default → invalid tag). The inverse of GetTerrainTypeIndex — used by game features that interpret terrain by tag.