State Trees are Unreal's data-driven alternative to Behavior Trees, built for both single-actor AI and Mass Entity crowds at scale. The architecture is clever: tasks and conditions are lightweight structs instead of UObjects, and execution context gets reconstructed each tick from persistent instance data, making parallel evaluation safe. You get hierarchical states with evaluators that run globally before transitions, plus a schema system that validates what data your tree can touch at edit time. The instance data pattern takes getting used to (all your mutable state lives in a separate struct), but it pays off when you're running thousands of entities. If you're migrating from Behavior Trees or building AI that needs to scale beyond a few dozen actors, this is the modern path forward.

skills.sh installs
1.2K
GitHub stars
446
last updated
Aug 21, 2026

Install

$ npx -y skills add quodsoler/unreal-engine-skills --skill ue-state-trees --agent claude-code

Installs into .claude/skills of the current project.

Files

UE State Trees

Target engine: UE 5.8. APIs below are verified against the 5.8 headers; older forms are listed under "Deprecated — do not use".

State Tree is a data-driven hierarchical state machine authored as a UStateTree data asset and executed from C++ through an execution context. Runtime types live in the StateTreeModule (plugin StateTree); actor-facing components and schemas live in GameplayStateTreeModule (plugin GameplayStateTree). Mass-entity behaviours add MassAIBehavior (plugin MassAI, Experimental in 5.8) plus MassEntity, MassCore and MassSignals. Add the modules you use to PublicDependencyModuleNames in your .Build.cs.

Context

Read .agents/ue-project-context.md if it exists (module names, conventions, enabled plugins, GAS/networking setup). Do not stop if it is missing.

Identify the area from the request and the codebase. Ask only when two plausible readings would produce different code.

Request is about…Go to
What the runtime looks like, instance data, contextsArchitecture, Execution Contexts
Writing a taskTasks

Sponsors

Details

Repository
github.com/quodsoler/unreal-engine-skills
Category
Game Development
First seen
Jun 3, 2026

More from quodsoler/unreal-engine-skills

All 27
1donchitos avatarbalance-checkdonchitos/claude-code-game-studiosAnalyzes game balance data files, formulas, and configuration to identify outliers, broken progressions, degenerate strategies, and economy imbalances. Use afte963skills.sh installs
2donchitos avatarplaytest-reportdonchitos/claude-code-game-studiosGenerates a structured playtest report template or analyzes existing playtest notes into a structured format. Use this to standardize playtest feedback collecti760skills.sh installs
3opusgamelabs avatarphaseropusgamelabs/game-creatorphaser757skills.sh installs
4donchitos avatarbrainstormdonchitos/claude-code-game-studiosGuided game concept ideation — from zero idea to a structured game concept document. Uses professional studio ideation techniques, player psychology frameworks,737skills.sh installs
5donchitos avatarteam-narrativedonchitos/claude-code-game-studiosOrchestrate the narrative team: coordinates narrative-director, writer, world-builder, and level-designer to create cohesive story content, world lore, and narr697skills.sh installs
6pluginagentmarketplace avatarlevel-designpluginagentmarketplace/custom-plugin-game-developerLevel design fundamentals, pacing, difficulty progression, environmental storytelling, and spatial design for engaging gameplay experiences.583skills.sh installs