Skip to content

Sein Level Volume

Class · ASeinLevelVolume : AVolume

#include "Volumes/SeinLevelVolume.h"

Marks the playable area of a level. The union of all Sein Level Volumes in a level is the play area that navigation, fog of war and the minimap cover. A volume can override the navigation cell size, max step height and fog cell size for its own area, carries per-layer configs, and has the Bake Level Data button that bakes the level’s navigation, fog and minimap data.

This volume’s config instance of ConfigClass (or null). A layer provider calls this at bake to read its per-volume settings.

USeinLayerConfig* GetLayerConfig(TSubclassOf<USeinLayerConfig> ConfigClass) const;

bool bOverrideCellSize · default false

Editable in defaults and on instances

Override the project-wide cell size. When false, plugin settings’ CellSize.

FFixedPoint CellSize · default FFixedPoint::FromInt(100) · shown when bOverrideCellSize

Editable in defaults and on instances

Size of one navigation grid cell in world units for this volume. Used only when Override Cell Size is on. Default 100.

bool bOverrideMaxStepHeight · default false

Editable in defaults and on instances

Use this volume’s Max Step Height instead of the project setting.

FFixedPoint MaxStepHeight · default FFixedPoint::FromInt(50) · shown when bOverrideMaxStepHeight

Editable in defaults and on instances

Tallest vertical step in world units that a unit can cross between adjacent cells. Used only when Override Max Step Height is on. Taller height differences are baked as walls. Default 50.

bool bOverrideVisionCellSize · default false

Editable in defaults and on instances

Use this volume’s Vision Cell Size instead of the project setting. The bake snaps it to a whole multiple of the navigation cell size.

FFixedPoint VisionCellSize · default FFixedPoint::FromInt(400) · shown when bOverrideVisionCellSize

Editable in defaults and on instances

Size of one fog-of-war grid cell in world units for this volume. Used only when Override Vision Cell Size is on. Default 400.

bool bBakeStaticBlockers · default true

Editable in defaults and on instances

If true, the fog layer’s bake detects static sight blockers (walls, buildings, hedgerows) and stamps them into the fog channel. If false, only grid layout + ground height bake — all sight occlusion then comes from runtime sources (USeinExtentsComponent with bBlocksFogOfWar, designer-authored ability effects, etc.).

TSoftObjectPtr<UTexture2D> MinimapOverrideTexture

Editable in defaults and on instances

Optional per-level minimap background override. When set, the UI minimap uses this texture instead of the auto-generated baked top-down texture — the path to hand-authored / stylized minimap art (the bake produces a serviceable default). Resolved at the UI layer; the first volume in the level with an override set wins. SOFT reference — loaded on demand by the minimap view-model.

TSoftObjectPtr<USeinLevelDataAsset> BakedAsset

Editable in defaults and on instances

Baked level data for this level. Assigned by the bake pipeline; shared across all level volumes on the level (last-baked wins). Polymorphic — concrete type depends on the active USeinLevelData subclass. SOFT reference — loaded on demand (at begin-play by the level-data subsystem), so opening the map does NOT force-load the baked substrate package into the level’s hard-reference graph.

FFixedVector PlacedBoundsMin · default FFixedVector::ZeroVector

Read-only in Details

Minimum corner of the volume’s world-space bounds, recorded in fixed point when the volume is moved in the editor so every machine builds the same grid. Set automatically.

FFixedVector PlacedBoundsMax · default FFixedVector::ZeroVector

Read-only in Details

Maximum corner of the volume’s world-space bounds, recorded in fixed point when the volume is moved in the editor so every machine builds the same grid. Set automatically.

bool bBoundsBaked · default false

Read-only in Details

True once the editor has recorded the volume’s bounds. Set automatically.

TArray<TObjectPtr<USeinLayerConfig>> LayerConfigs

Editable in defaults and on instances

Per-volume config instances — one per registered USeinLayerConfig subclass. Edited inline in the details panel; serialized with the level.

C++ members (9)
  • void BakeLevelData(); Bake the unified level data covering every Sein Level Volume in this level (runs the shared trace pass + all registered layer providers). Routes through USeinLevelDataSubsystem::BeginBake. Surfaced as the “Bake Level Data” button in the details panel’s “Bake” group (see FSeinLevelVolumeDetails).
  • FBox GetVolumeWorldBounds() const; World-space AABB of this volume’s brush (float, render-side). Use PlacedBounds* for sim-side reads.
  • FFixedPoint GetResolvedCellSize() const; Per-volume cell size with plugin-settings fallback.
  • FFixedPoint GetResolvedMaxStepHeight() const; Per-volume max-step-height with plugin-settings fallback.
  • FFixedPoint GetResolvedVisionCellSize() const; Per-volume fog cell size with plugin-settings fallback (VisionCellSize).
  • static void RegisterDebugComponentClass(UClass* ComponentClass); Register a debug component class and immediately reconcile every live ASeinLevelVolume. Repeated registration is idempotent and heals a missing exact-class instance.
  • static void UnregisterDebugComponentClass(UClass* ComponentClass); Unregister a debug component class and synchronously destroy every live exact-class instance hosted by ASeinLevelVolume. InstanceComponents is scrubbed and primitive scene-proxy teardown is flushed before return, so the owning module may safely unload. Repeated calls are idempotent.
  • static void RegisterLayerConfigClass(UClass* ConfigClass); Register/unregister a USeinLayerConfig subclass so an editable instance auto-appears on every ASeinLevelVolume. Call from the owning module’s Startup/ShutdownModule (same idiom as RegisterDebugComponentClass).
  • static void UnregisterLayerConfigClass(UClass* ConfigClass);