Skip to content

Sein Minimap View Model

Class · USeinMinimapViewModel : UObject

#include "ViewModel/SeinMinimapViewModel.h"

View-model for the minimap. Style-free: blips carry relation + size class, and the widget maps those to color/radius. Positions are north-up normalized [0,1] map space.

FOnMinimapViewModelRefreshed OnRefreshed

Fired after each Refresh().

FVector2D WorldBoundsMin · default FVector2D::ZeroVector

Blueprint read-only

World-space XY of the play-area min corner (matches the baked grid origin).

FVector2D WorldBoundsMax · default FVector2D(1.0, 1.0)

Blueprint read-only

World-space XY of the play-area max corner (origin + dims * cell size).

float GroundZ · default 0.0f

Blueprint read-only

Representative baked surface Z used for screen<->world deprojection.

bool bHasBounds · default false

Blueprint read-only

True once the play-area bounds have been resolved from the level-data substrate.

TArray<FSeinMinimapBlip> Blips

Blueprint read-only

Live unit markers, rebuilt every refresh.

TObjectPtr<UTexture2D> FogTexture

Blueprint read-only

Fog overlay texture (alpha hides terrain): visible = transparent, explored = dim, unexplored = opaque. Null when the world has no active fog.

TObjectPtr<UTexture2D> BackgroundTexture

Blueprint read-only

Background terrain texture (per-level override, else baked). Null if neither exists.

int32 FogTextureResolution · default 256 · min 16, max 512

Editable in defaults and on instances · Blueprint read and write

Square edge of the fog overlay texture in texels. Higher = sharper fog edges.

int32 FogUpdateInterval · default 4 · min 1

Editable in defaults and on instances · Blueprint read and write

Rebuild the fog overlay every N presentation refreshes. 1 = every engine frame that completed simulation work.

int32 FogBlurRadius · default 0 · min 0, max 8

Editable in defaults and on instances · Blueprint read and write

Box-blur radius (texels) applied to the fog overlay each rebuild to soften the hard per-cell edges. 0 = off. Works together with the texture’s bilinear filtering.

FColor FogExploredColor · default FColor(0, 0, 0, 120)

Editable in defaults and on instances · Blueprint read and write

Fog overlay color for explored-but-not-currently-visible cells (alpha darkens terrain).

FColor FogUnexploredColor · default FColor(2, 2, 4, 255)

Editable in defaults and on instances · Blueprint read and write

Fog overlay color for never-explored cells (alpha near-opaque hides terrain).

C++ members (2)
  • void Initialize(USeinWorldSubsystem* InWorldSubsystem, UWorld* InWorld); Bind to the sim subsystem + owning world. Safe to call with a null subsystem (the PC / level data may not exist yet — Refresh re-resolves lazily).
  • void Refresh(); Rebuild cached minimap data from the sim. Called each sim tick by USeinUISubsystem.