unreal-blueprints
What it does
This skill shows how to structure gameplay in Unreal Engine 5 using Blueprints, the visual scripting system. It is for creators who build game logic without writing C++.
When to use it
- βWhen you are wiring events, such as begin play or overlaps, in an Unreal Blueprint.
- βWhen you need two Blueprints to communicate without tangled references.
- βWhen you want to set up editor-time behavior in a Blueprint's construction script.
Skill link
https://github.com/gamedev-skills/awesome-gamedev-agent-skills/blob/main/skills/unreal/unreal-blueprints/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βMake a door Blueprint in Unreal that opens when the player walks up and presses E.β
5 new skills a week. 1 minute to read.
How it works
It explains the difference between Blueprint classes and the Level Blueprint, when to use the construction script, and how casts, interfaces and event dispatchers pass messages.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Unreal Blueprints (Visual Scripting)
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.8. (Blueprints are node graphs; the snippets below describe node flows.)
When to use
- Use when authoring a Blueprint Class, wiring the Event Graph (BeginPlay/Tick/overlap), using the Construction Script, creating variables/functions/macros, or choosing how two Blueprints communicate (Cast, Interface, or Event Dispatcher).
- Use when the project has
*.uprojectand Blueprint*.uassetfiles, and the user works visually 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.
Core workflow
- Choose the Blueprint type. A Blueprint Class (derived from Actor/Pawn/Character/ ActorComponent) defines a reusable object. The Level Blueprint is a per-level graph for level-specific scripting only β don't put reusable logic there.
- Use the Construction Script for editor-time setup (procedural placement, configuring components from variables) β it runs when the actor is placed or edited, not during play.
- Use the Event Graph for runtime logic.
Event BeginPlayfor init, input/overlap events for reactions. AvoidEvent Tickunless you truly need per-frame work. - Expose data with variables; click the eye icon to make a variable Instance Editable, and group related ones with categories. Mark pure functions (no exec pin) for getters.
- Pick a communication method by coupling (see Patterns): direct Cast for things you own, Blueprint Interface to call across types without hard references, Event Dispatcher to broadcast one-to-many.
- Verify with the Blueprint debugger: drop breakpoints on nodes, watch variable values, and use Print String to confirm execution paths during Play In Editor (PIE).
Patterns
1. Reactive Event Graph (no Tick)
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.
2. Direct reference + Cast (tight coupling, use sparingly)
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.
3. Blueprint Interface (decoupled call)
// 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
4. Event Dispatcher (one-to-many broadcast)
// 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.
Pitfalls
- Cast spaghetti / long load times β chains of
Cast Tocreate hard references that pull whole asset trees into memory. Decouple with Interfaces or Dispatchers. - Logic in the Level Blueprint that should be reusable β it can't be reused across levels. Put it in a Blueprint Class.
Event Tickoveruse β every-frame nodes add up fast. Use events, Timers (Set Timer by Event), and Timelines instead.- Construction Script doing gameplay β it runs in the editor on edit/placement; spawning gameplay actors or starting logic there causes editor-only artifacts. Init in BeginPlay.
- Variable not visible on the instance β toggle Instance Editable (the eye); to edit before spawn via Spawn node, also m
FAQ
What is the Level Blueprint?
It is a graph attached to one level, meant only for scripting that is specific to that level.
When should I use C++ instead?
The skill suggests C++ for performance-critical or large systems that benefit from source control and tests.
Does this cover input setup?
Not fully. Input mapping is covered by a separate Enhanced Input skill.
Details
Original description by the author
Build Unreal Engine 5 gameplay with Blueprint visual scripting: Blueprint Classes, the 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.
Popularity
- GitHub stars
- 6.6k
- Ranking position
- #13853
- License
- Apache-2.0
- Updated
- 10/28/2026
Comments
- β¦
More skills from this repository
router
6.6kHelps your agent pick the right game development skill for a request by detecting your engine and the kind of task you need.
ai-behavior-trees-utility-ai
6.6kHelps your agent build a behavior tree and utility AI system for game enemies and characters that choose actions by priority and score.
audio-design
6.6kTeaches your agent game audio mixing: buses, decibel volume, ducking under dialogue, adaptive music and sound effect variation.
camera-systems
6.6kHelps your agent build game cameras that follow smoothly, stay inside the level, and orbit or look around in 3D.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.