gamedev-skills/unreal-blueprints
> Event Graph and Construction Script, variables/functions/macros, and Blueprint communication (Cast, Interfaces, Event Dispatchers). Use when working in Blueprints, wiring an event graph, deciding how Blueprints talk to each other, or when the user mentions Blueprint, BP, event graph, construction script, or a Blueprint .uasset.
npx skills add https://github.com/gamedev-skills/awesome-gamedev-agent-skills --skill unreal-blueprints
Structure gameplay logic in Unreal Engine 5 Blueprints: pick the right graph, expose data
cleanly, and choose a communication method that doesn't create hard-reference spaghetti.
Targets UE 5.4+. (Blueprints are node graphs; the snippets below describe node flows.)
using the Construction Script, creating variables/functions/macros, or choosing how two
Blueprints communicate (Cast, Interface, or Event Dispatcher).
*.uproject and Blueprint *.uasset files, and the user worksvisually rather than in C++.
When *not* to use: performance-critical systems, large data structures, or anything that
benefits from source control diffs and unit tests → unreal-cpp-gameplay. Player input
mapping → unreal-enhanced-input. AI logic → unreal-behavior-trees.
ActorComponent) defines a reusable object. The Level Blueprint is a per-level graph for
level-specific scripting only — don't put reusable logic there.
components from variables) — it runs when the actor is placed or edited, *not* during play.
Event BeginPlay for init, input/overlap eventsfor reactions. Avoid Event Tick unless you truly need per-frame work.
group related ones with categories. Mark pure functions (no exec pin) for getters.
own, Blueprint Interface to call across types without hard references, **Event
Dispatcher** to broadcast one-to-many.
and use Print String to confirm execution paths during Play In Editor (PIE).
Event BeginPlay
-> Set 'StartLocation' = GetActorLocation
-> Bind Event to OnComponentBeginOverlap (TriggerVolume) [calls custom event OnEnterZone]
OnEnterZone (Other Actor)
-> Branch: Other Actor == Player?
True -> Open Door (Timeline drives the rotation) // event-driven, runs once
Prefer events (overlaps, timers, dispatchers) and Timelines over polling in Tick.
Overlapped Actor (Actor ref)
-> Cast To BP_Player
Cast Failed -> (do nothing)
Success -> call BP_Player.ApplyDamage(10)
Cast To creates a hard reference to that class (it loads with this Blueprint). Fine when the
caller genuinely depends on that type; otherwise prefer an Interface.
// 1. Create BPI_Interactable with function 'Interact(Instigator)'.
// 2. Add the interface to BP_Door, BP_Chest, BP_Lever and implement 'Interact' in each.
// 3. Caller, with any Actor ref:
Player presses Use
-> Does Object Implement Interface (BPI_Interactable)? // safe check, no Cast/hard ref
True -> Interact (Message) on Target Actor
// In BP_Player: declare Event Dispatcher 'OnHealthChanged (float NewHealth)'.
TakeDamage -> Set Health -> Call 'OnHealthChanged' (Health) // broadcast
// In WBP_HUD BeginPlay: Bind Event to 'OnHealthChanged' -> update health bar.
// Many listeners can bind; the player never references them.
Cast To create hard references that pullwhole asset trees into memory. Decouple with Interfaces or Dispatchers.
Put it in a Blueprint Class.
Event Tick overuse — every-frame nodes add up fast. Use events, Timers(Set Timer by Event), and Timelines instead.
gameplay actors or starting logic there causes editor-only artifacts. Init in BeginPlay.
spawn via Spawn node, also mark "Expose on Spawn".
Implement Interface" before calling, or use the Message version which is safe on non-implementers.
binding, read references/communication.md.
(https://dev.epicgames.com/documentation/en-us/unreal-engine/overview-of-blueprints-visual-scripting-in-unreal-engine).
unreal-cpp-gameplay — when to drop to C++; how BP and C++ classes interoperate.unreal-enhanced-input — the modern way to feed input events into these graphs.unreal-behavior-trees — AI decision logic that Blueprints trigger.Take gamedev-skills/unreal-blueprints from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.