Skip to content

Formation Preview Actor (Decal)

Class · ASeinDecalFormationPreviewActor : ASeinFormationPreviewActor

Parent: Formation Preview Actor (Mesh)

#include "Preview/SeinDecalFormationPreviewActor.h"

can be subclassed in Blueprint

Draws the destination/formation preview markers as decals projected onto the ground, so they drape over hills and slopes instead of floating on a flat plane. Pick this when your maps have uneven terrain; pick the mesh backend (Formation Preview Actor) when the ground is mostly flat.

Uses DEFERRED DECAL projection: each marker is a UDecalComponent whose projection box is cast straight down onto the scene, painting the preview material onto whatever ground geometry it touches. This is what lets the marker conform to terrain. The trade-off is a deferred decal cannot write motion velocity for its own movement, so while you drag the markers across the ground they smear/ghost under TAA; pair this backend with TSR (which rejects stale history by colour) if that bothers you. ProjectionDepthUU sets how far each decal box extends vertically in world units (centered on the placement position) — keep it small (~64) so decals hit the ground only and don’t bleed onto overhead structures. Selected via the Formation Preview Actor Class setting; the assigned preview material must be a Deferred Decal domain material (null falls back to the engine’s default deferred-decal material).

float ProjectionDepthUU · default 64.f · min 1.0

Editable in defaults and on instances · Blueprint read and write

Total projection depth in world units — how far each decal box extends vertically (centered on the placement position). Keep small (~64) so the decal hits ground geometry only and doesn’t bleed onto overhead structures.