Skip to content

Sein Level Layer Provider

C++ type · ISeinLevelLayerProvider

#include "SeinLevelLayerProvider.h"

Implemented by a system, such as navigation or fog of war, that adds its own baked channel to the level bake. The bake runs the shared trace pass once and then asks each registered provider to build its channel from it. It is not exposed to Blueprint.

C++ members (3)
  • FName GetLayerId() const; Stable id for this layer’s channel block in the baked asset (e.g. “Nav”, “FogOfWar”). Must match what the runtime consumer looks up.
  • void BakeLayer(const USeinLevelData& Substrate, UWorld* World, TArray<uint8>& OutData); Compute this layer’s baked channels from the shared substrate. Called once per BeginBake, after the shared trace pass. Reads Substrate’s grid + GetSharedHeightAt + IsInBounds (subsampling to its own resolution), and may run its OWN layer-specific traces against World (e.g. FoW’s occluder sweep, nav’s connectivity midpoints — see the trace-reconciliation note in the microplan). Serializes the result into OutData — opaque to the substrate.
  • int32 GetCellSizeMultiple() const; This layer’s cell size as a multiple of the substrate’s finest cell size (coarser layers subsample; e.g. FoW at 400uu over a 100uu grid = 4). Read by the bake orchestration AFTER BakeLayer returns (a provider that derives its resolution from per-bake config records it during BakeLayer) and stored on the channel block as metadata. Default: 1 (finest).