Skip to content

Sein Formation Preview Subsystem

Class · USeinFormationPreviewSubsystem : ULocalPlayerSubsystem

#include "Preview/SeinFormationPreviewSubsystem.h"

Draws the on-ground preview of where the selected units will stand if the current order is issued. It follows the cursor, shows the formation being dragged out, and hides when nothing is selected. Units appear in the preview only if their Blueprint carries a Navigation Renderer.

Force a refresh of the preview from the current cursor / drag state.

void RefreshPreview();

True while a destination preview is being drawn.

bool IsPreviewVisible() const;
void HandleSelectionChanged();

PC delegate handlers

void HandleCursorUpdated(FVector CursorWorld, bool bValidTrace);

Called by the player controller whenever the cursor moves. Updates the preview position; not meant to be called directly.

C++ members (2)
  • void ReleaseModuleOwnedStateForModuleUnload(); Stop ticking, detach from engine/player delegates, and destroy the transient preview before module withdrawal.
  • bool TryGetDisplayedDestinationArtifact(const TArray<FSeinEntityHandle>& Members, const FFixedVector& TargetLocation, const TArray<FFixedVector>& GuidePoints, FGameplayTag FormationTag, bool bQueueCommand, TArray<FSeinFrozenDestination>& OutArtifact) const; Return the exact artifact currently rendered when its complete command key matches. False prevents stale preview state from entering a command.