Skip to content

SeinARTS Entity Bridge

Class · USeinEntityBridgeComponent : UActorComponent

#include "Actor/SeinEntityBridgeComponent.h"

can be added from the Components panel

The SeinARTS Entity Bridge component, found on every Sein Actor and on the Game State and Player State. It links the actor to its simulation entity and carries the data baked from the actor’s Sein components. Top-level settings cover whether the entity is abstract, its starting tags and its fog-of-war visibility; render-side options for transform sync, interpolation and mesh performance sit in their own categories and never affect the simulation.

Get the entity handle this component represents.

FSeinEntityHandle GetEntityHandle() const;

Check if this component has a valid, living entity. Validates both handle generation and entity pool liveness.

bool HasValidEntity() const;

Rendering

Read the primary ability’s current target for animation and visual effects. Returns false when no active targeted ability exists or its target entity has been destroyed. Entity targets use their current simulation position; point targets use the captured position. Call on the game thread and copy the result into animation variables before pose evaluation. This presentation query never changes simulation state.

bool GetActiveAbilityVisualTarget(FVector& WorldLocation) const;

Apply RayTracingGeometryPolicy to the owner’s current primitive components. ASeinActor applies it after component registration in editor and runtime worlds, then BeginPlay reapplies it for runtime safety. Call again after adding render components dynamically. Render-only and lockstep-safe.

void ApplyRayTracingGeometryPolicy();

Apply SkeletalMeshPerformancePolicy to the owner’s current skeletal mesh components. ASeinActor applies it after component registration in editor and runtime worlds, then BeginPlay reapplies it for runtime safety. Call again after adding skeletal components dynamically or changing policy.

void ApplySkeletalMeshPerformancePolicy();

Sync

Enable/disable automatic transform synchronization. When enabled, actor transform is updated each tick to match simulation.

void SetTransformSyncEnabled(bool bEnable);

Check if transform sync is enabled.

bool IsTransformSyncEnabled() const;

FOnSeinEntityVisualEvent OnVisualEvent · passes FSeinVisualEvent Event

Per-entity visual event delegate. Render-side ACs subscribe in BeginPlay via Bridge->OnVisualEvent.AddDynamic(this, &MyType::HandleVisualEvent) (C++) or Bind Event to On Visual Event (BP). Fires for every visual event the bridge subsystem routes to this entity.

FSeinBridgePresentationRefresh OnPresentationRefresh

Refresh bound visuals from current entity data after assignment or save restoration.

bool bIsAbstract · default false

Editable in defaults and on instances · Blueprint read-only

The entity has no world presence: it exists only in the simulation, with no actor, and never appears in world sweeps, spatial queries or entity queries that skip abstract entities. The Player State and Game State are abstract; so is anything that tracks other entities without being one in the world (a group, a scenario owner).

Default false — most entities have actor presence.

FGameplayTagContainer BaseTags

Editable in defaults and on instances · Blueprint read-only

Gameplay tags this entity starts with. This is where you author an entity’s tags. Change them during play with the tag nodes (Grant Tag and Ungrant Tag) rather than editing this list.

ESeinFogVisibilityPolicy FogVisibilityPolicy · default ESeinFogVisibilityPolicy::VisionLayersOnly

Editable in defaults and on instances · Blueprint read-only

Persistence policy AFTER reveal: VisionLayersOnly (default) — visible only while currently spotted. Standard for enemy units. VisibleOnceSeen — visible once a source has actually spotted THIS ENTITY; ghost-revealed forever after. Something built in already-explored-but-unseen fog stays hidden until seen. Standard for enemy buildings. VisibleOnceExplored — visible once the entity’s CELL is explored, even if the entity was never seen; coarser terrain-scout reveal. AlwaysVisible — bypasses fog entirely. Walls, landmarks, persistent destructibles, self-occluding effects whose stamp blocks vision past them but whose actor must stay rendered.

uint8 FogVisibilityLayerMask · default 0xFE

Editable in defaults and on instances · Blueprint read-only

Which observer FoW layer bits actually see this entity. An observer’s vision query on a given layer bit only “spots” this entity if its mask is non-zero in that bit. Independent of FogVisibilityPolicy (policy = persistence after reveal; this = who can reveal in the first place).

Default 0xFE (all bits set except Explored / E, which is sticky-reveal and shouldn’t grant initial spotting). Designers narrow this for stealth / camo units (e.g. set to N0 only; only observers stamping the N0 layer can see it). Runtime mutation flows through Set Entity Emission Mask and friends, which flip the sim-side Fog Visibility Data::FogVisibilityLayerMask for cloak / detect mechanics at ability time.

TArray<FInstancedStruct> ComponentData

Read-only in Details · Blueprint read-only

The data baked from the actor’s Sein components, one entry per component type. Read-only: edit the Sein components on the actor instead.

FSeinEntityHandle EntityHandle

Blueprint read-only

Generational entity handle this component represents

bool bSyncTransform · default true

Editable in defaults and on instances · Blueprint read and write

Whether to automatically sync actor transform to simulation

bool bInterpolateTransform · default true

Editable in defaults and on instances · Blueprint read and write

Whether to interpolate between sim tick snapshots for smooth visuals

ESeinRayTracingGeometryPolicy RayTracingGeometryPolicy · default ESeinRayTracingGeometryPolicy::ExcludeSkinnedMeshes

Editable in defaults and on instances · Blueprint read and write

Controls whether this entity contributes primitive geometry to hardware ray tracing. The crowd-safe default excludes animated/skinned meshes, avoiding per-unit BLAS memory and update cost while retaining ordinary raster visibility, shadows, and static ray-traced scene geometry.

ESeinSkeletalMeshPerformancePolicy SkeletalMeshPerformancePolicy · default ESeinSkeletalMeshPerformancePolicy::RTSVisualMesh

Editable in defaults and on instances · Blueprint read and write

Controls native Unreal animation/physics work for the render meshes on this sim-backed actor. RTS Visual Mesh is the crowd-safe default: the deterministic sim remains authoritative for collision and gameplay, while animation stays a scalable presentation concern. Select RTS Physics Mesh for partial ragdolls/physical animation, or Component Defaults when a Blueprint owns the complete policy.

C++ members (8)
  • static bool ValidateComponentData(const TArray<FInstancedStruct>& ComponentData, TArray<FSeinComponentDataIssue>& OutIssues); Validate a ComponentData array for authoring correctness: every entry must resolve to a real struct type (an empty picker row, or a struct asset later deleted/renamed, does not), and no two entries may author the same struct type. Returns true iff OutIssues is left empty. This is the SINGLE shared definition of “valid ComponentData” — used by the Blueprint pre-compile gate (SeinARTSEditorModule’s OnBlueprintPreCompile hook), the match build (USeinMatchStartupSubsystem::ValidateEntityComponentData), and ASeinActor’s map check. They call through here so they can never silently disagree about what is broken; only what happens on failure (warn at compile, abort the match, or warn in the map check) differs. A spawn writes entries in order, so a duplicate type’s later entry wins. The compile gate reads the CDO of Blueprint->GeneratedClass, which at OnBlueprintPreCompile time is still the class from the LAST compile — edits made through the property editor land on that same live CDO directly (independent of compilation), so ordinary ComponentData value edits are always caught on the very next compile. The one gap: a USeinEntityBridgeComponent added for the first time via the SCS in this same edit session isn’t on that old CDO yet, so a bad entry on it slips through THIS compile and is caught on the next one instead — moot for ASeinActor units, where the entity bridge is already a native default subobject before any authoring happens. The match build remains the authoritative backstop regardless.
  • void BuildArchetype(FSeinEntityArchetype& Out) const; The archetype this bridge authors: ComponentData, base tags and the fog visibility payload its top-level fields describe.
  • static void RegisterArchetypeResolver(); Bind / unbind the simulation’s archetype resolver to entity bridges on class defaults. The owning module calls them at startup and shutdown.
  • static void UnregisterArchetypeResolver();
  • void SetEntityHandle(FSeinEntityHandle InHandle); Set the entity handle this component represents. Takes an initial transform snapshot from the entity.
  • void OnSimFrame(int32 TicksProcessed); Called after an engine-frame simulation pump to capture the latest transform. A single completed tick advances the interpolation pair. Catch-up pumps snap both snapshots to the latest state because the render alpha represents only one fixed-tick interval.
  • void HandleVisualEvent(const FSeinVisualEvent& Event); Handle a visual event dispatched from the simulation. Two outputs: 1. Routes the event to the owning ASeinActor’s Receive* BlueprintImplementable events (existing behavior — designers can react in BP without an AC). 2. Broadcasts OnVisualEvent (below) so render-side ACs subscribed to this entity (USeinConstructionRenderComponent, designer BP render components, etc.) receive the event without inheriting from a SeinARTS base class.
  • void RefreshPresentation(); Refresh current presentation without replaying gameplay or transition effects.