Sein Level Data
Class · USeinLevelData : UObject
#include "SeinLevelData.h"
abstract: use a subclass
Abstract base for the shared baked level grid: ground height, surface slope and the play-area mask. Navigation and fog of war build their layers on top of it. Choose the class with Level Data Class in the Level settings. The shipped implementation is Sein Level Data (Default).
C++ members (16)
FFixedPoint GetFinestCellSize() const;World units per finest grid cell edge.FFixedVector GetOrigin() const;World-space XY (and Z) of cell (0,0)’s corner.FIntPoint GetDimensions() const;Grid dimensions in finest cells (X, Y).bool IsInBounds(const FFixedVector& WorldPos) const;True if a world-space XY is inside the play-area mask — the union of all level-volume brush shapes. Cells outside every brush are out-of-bounds (impassable for nav, no vision for FoW). Default: false (no bake).bool GetSharedHeightAt(const FFixedVector& WorldPos, FFixedPoint& OutZ) const;Sample the baked top-of-surface Z at a world-space XY. This is the SHARED source every layer reads (nav for Z-snap, FoW for LOS occlusion). Any layer-specific gating (e.g. nav’s walkable-only refusal) lives on that layer, NOT here. Returns false out-of-bounds / when there is no bake.bool GetCellSurface(int32 CellIndex, FSeinLevelCellSurface& OutSurface) const;Per-cell shared surface data by finest-res cell index (row-major). The provider-facing read: a layer’s BakeLayer iterates cells and reads this to reproduce its channel (e.g. nav: Cost from slope gate on NormalZ + flags). Exposed on the base so providers stay decoupled from the concrete substrate (modularity). Returns false for an invalid index / no bake.bool GetLayerChannel(FName LayerId, TArray<uint8>& OutData) const;Read a layer’s baked channel blob by id (e.g. “Nav”), produced by that layer’s provider at bake time. The layer’s runtime consumer deserializes it (nav: Cost + Connections). Returns false if no such channel / no bake.UTexture2D* GetMinimapTexture() const;The baked top-down minimap background texture for this level (synthesized from the shared height field at bake time). Null if the substrate has no bake / no minimap output. The UI layer prefers a per-level designer override (ASeinLevelVolume::MinimapOverrideTexture) over this. Default: null.void RegisterLayerProvider(ISeinLevelLayerProvider* Provider);void UnregisterLayerProvider(ISeinLevelLayerProvider* Provider);bool BeginBake(UWorld* World);Run the configured bake implementation. A world whose match has started rejects this before any authoring or runtime substrate state can change; restart PIE/the match after rebaking.static FSeinBakeIgnoredActors& BakeIgnoredActors();Bound by the module that owns placed Sein actors; seeFSeinBakeIgnoredActors.bool IsBaking() const;void RequestCancelBake();bool LoadFromAsset(USeinLevelDataAsset* Asset);Adopt one baked asset. Like BeginBake, this is an owner-guarded mutation front door: sealed deterministic worlds reject the call before the implementation receives it. Returns true only when the implementation accepted the asset.bool HasRuntimeData() const;