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.
Functions
Section titled “Functions”Get Entity Handle
Section titled “Get Entity Handle”Get the entity handle this component represents.
FSeinEntityHandle GetEntityHandle() const;Has Valid Entity
Section titled “Has Valid Entity”Check if this component has a valid, living entity. Validates both handle generation and entity pool liveness.
bool HasValidEntity() const;Rendering
Get Active Ability Visual Target
Section titled “Get Active Ability Visual Target”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 Ray Tracing Geometry Policy
Section titled “Apply Ray Tracing Geometry Policy”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 Skeletal Mesh Performance Policy
Section titled “Apply Skeletal Mesh Performance Policy”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
Set Transform Sync Enabled
Section titled “Set Transform Sync Enabled”Enable/disable automatic transform synchronization. When enabled, actor transform is updated each tick to match simulation.
void SetTransformSyncEnabled(bool bEnable);Is Transform Sync Enabled
Section titled “Is Transform Sync Enabled”Check if transform sync is enabled.
bool IsTransformSyncEnabled() const;Event dispatchers
Section titled “Event dispatchers”On Visual Event
Section titled “On Visual Event”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.
On Presentation Refresh
Section titled “On Presentation Refresh”FSeinBridgePresentationRefresh OnPresentationRefresh
Refresh bound visuals from current entity data after assignment or save restoration.
Properties
Section titled “Properties”General
Section titled “General”Is Abstract
Section titled “Is Abstract”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.
Base Tags
Section titled “Base Tags”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.
Fog Visibility Policy
Section titled “Fog Visibility Policy”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.
Fog Visibility Layer Mask
Section titled “Fog Visibility Layer Mask”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.
Component Data
Section titled “Component Data”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.
Entity Handle
Section titled “Entity Handle”FSeinEntityHandle EntityHandle
Blueprint read-only
Generational entity handle this component represents
Sync Transform
Section titled “Sync Transform”bool bSyncTransform · default true
Editable in defaults and on instances · Blueprint read and write
Whether to automatically sync actor transform to simulation
Interpolate Transform
Section titled “Interpolate Transform”bool bInterpolateTransform · default true
Editable in defaults and on instances · Blueprint read and write
Whether to interpolate between sim tick snapshots for smooth visuals
Rendering
Section titled “Rendering”Ray Tracing Geometry Policy
Section titled “Ray Tracing Geometry Policy”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.
Skeletal Mesh Performance Policy
Section titled “Skeletal Mesh Performance Policy”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), andASeinActor’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: aUSeinEntityBridgeComponentadded 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 forASeinActorunits, 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 owningASeinActor’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.