Skip to main content

X:Game

Entity Framework​

Entity Framework is Unreal Engine X's native C++ and Blueprint adaptation of UE6 Scene Graph. It gives a gameplay object a reusable hierarchy of entities with their own transforms, components, and behavior. For example, a door prefab can put interaction logic and sound on its root, the moving mesh on one child, and a status light on another. The children follow the root and can move independently in local space.

ObjectRole
Entity (UEntity)Owns components and child entities. Its local transform positions it relative to its parent.
Entity component (UEntityComponent)Adds behavior or connects the entity to a native Unreal system such as meshes, Chaos physics, lights, or audio. Author behavior in C++ or with an Entity Component Blueprint.
Entity PrefabSaves the hierarchy, component classes, and configured values as a reusable asset.
Entity Prefab ActorHosts a placed or spawned copy of the prefab in a UE5 level. Gameplay callbacks operate on that live copy.

Create and place your first prefab​

  1. Enable Entity Framework (Native) in the project's plugin settings.
  2. Create an Entity Prefab in the Content Browser. Open it, select the root entity, and add an Entity Mesh Component. Assign a mesh in Details.
  3. Create an Entity Component Blueprint. Connect On Begin Simulation to Print String, then compile and save it.
  4. Add the Blueprint component to the same entity in the prefab. Save the prefab, drag it into the level, and start Play In Editor.
  5. To drive the mesh, call Get Entity then Find Entity Component with Entity Mesh Component as the class. Check the result, then call Set Material or Set Visible.

An entity can hold components from different groups, such as a mesh and a light. Each entity can have one component per group. Add a child entity when you need a second mesh or an independently positioned light. Move the entity through its transform setters so its children and attached components follow.

Author reusable gameplay​

Mark Blueprint variables Instance Editable, or declare C++ settings with UPROPERTY(EditAnywhere), to expose them in the component's Details. A door component can expose an opening angle, for example. Set the shared value on the prefab, use Base Prefab to create an inheriting variant, or use Enable Prefab Overrides on the placed Actor's Entity Host to customize one placement. An Entity Prefab Component embeds a linked prefab as a child hierarchy.

To instantiate a prefab at runtime, call Spawn Entity Prefab with the prefab asset and world transform. Deactivate Instance ends simulation and removes scene resources while retaining the initialized hierarchy. Activate Instance recreates those resources and resumes simulation. Clear Instance releases the hierarchy. For references saved across reloads or streaming, use Make Entity Reference or Make Component Reference and resolve the handle in the current world when needed. Resolution can fail while the target is unloaded.

Lifecycle and execution​

Use On Initialized to set up instance state, On Begin Simulation to start gameplay, and On End Simulation to remove simulation-scoped subscriptions. Same-entity native resources are prepared before user On Begin Simulation callbacks. Cache the entity adapter for reuse and reacquire the native mesh, audio, or light object after reactivation.

Components can call each other directly or publish Blueprint dispatchers. For hierarchy-wide events, use Send Up or Send Down and handle them with On Receive. For recurring updates, turn on Tick Enabled and implement Tick Simulation. Tick Interval, Execution Phase, and tick prerequisites control when callbacks run. The entity execution graph runs callbacks serially on the game thread.

For C++, add EntityFrameworkRuntime to your module dependencies, include EntityComponent.h, and derive from UEntityComponent. Override OnBeginSimulation_Implementation(), OnEndSimulation_Implementation(), or TickSimulation_Implementation(float DeltaSeconds) as needed.

Current scope​

The integration is experimental. The current skeletal mesh adapter uses UE5's AnimInstance and Animation Blueprints. Actor and socket origins, Actor-independent level packaging, entity replication and prediction, Mass integration, and UE6 UAF evaluation remain open. Prefab persistence, cooking, and Blueprint reinstancing in PIE still require broader validation.

Dedicated Input Thread​

The UE6 input backport can poll supported input devices independently of the game thread. It queues input for delivery through the input pipeline. The platform and device must opt in. On Windows, the existing keyboard and raw-mouse paths are retained.

ControlBehavior
input.UseInputThreadStarts or stops the dedicated thread on supported platforms. Use -InputThread or -NoInputThread at startup.
input.Thread.HzSets the target polling rate. The default is 120 Hz.
input.Thread.DumpStateReports the current polling state and pause requests.

Dedicated polling can pause when the game thread polls frequently enough and resume during a hitch. The input pipeline stays active while dedicated polling is paused. Physics-step Enhanced Input is a separate integration and is disabled by default.