К основному содержанию
скилл CX Codex

unreal-blueprints — скилл для Claude Code: суть и установка

Помогает проектировать геймплейную логику на блюпринтах в Unreal Engine 5. Подсказывает, как связать графы событий и не сломать проект жёсткими ссылками при общении классов.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill unreal-blueprints -a claude-code
Открыть на GitHub

Что делает unreal-blueprints

Скилл ориентирован на визуальное скриптование в Unreal Engine 5.8 для проектов с файлами *.uproject и *.uasset. Он помогает агенту выбрать подходящий контейнер для логики: выносить ли поведение в отдельный Blueprint Class, настраивать параметры в Construction Script или связывать реакцию на события через Event BeginPlay и Timeline вместо постоянного опроса в Event Tick.

Внутри заложены готовые сценарии для общения между классами: прямое приведение типов через Cast To, слабосвязанные вызовы через Blueprint Interface и рассылка событий через Event Dispatcher. Скилл предостерегает от длинных цепочек Cast: они создают жёсткие зависимости и затягивают связанные ассеты в память целиком при первой же загрузке. Для безопасной отправки команд без лишних ссылок он предлагает использовать интерфейсы.

Для ресурсоёмких вычислений, массивных структур данных и задач с диффами в системе контроля версий скилл советует сразу переходить в C++. При переносе старых блюпринтов в UE 5.8 важно вручную проверить совпадения имён локальных и компонентных переменных: движок блокирует такие имена для новых нод, но старые коллизии могут случайно перезаписать дефолтные значения.

Какие задачи решает

  • связать логику двух акторов через Blueprint Interface без взаимных ссылок
  • запустить анимацию или открывание двери по событию без использования Event Tick
  • разграничить процедурную настройку в Construction Script и рантайм-логику в BeginPlay
  • настроить оповещение интерфейса через Event Dispatcher при изменении здоровья

Примеры запросов агенту

  • Как связать BP_Player и WBP_HUD через Event Dispatcher при получении урона?
  • Покажи нодовый граф для открытия двери через Timeline без вызова Tick
  • Сделай интерфейс взаимодействия BPI_Interactable для сундука и рычага

Как установить unreal-blueprints

1Через Skills CLI (Vercel)

npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill unreal-blueprints -a claude-code

2Вручную: положить файлы

~/.claude/skills/unreal-blueprints/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/unreal-blueprints/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о unreal-blueprints

Как установить unreal-blueprints в Claude Code?

Выполните в терминале команду npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill unreal-blueprints -a claude-code.

Что делает скилл unreal-blueprints?

Он задаёт архитектурные правила для визуального скриптования в Unreal Engine 5.8: помогает выбирать нужные графы, структурировать переменные и настраивать связь между классами без спагетти из нод.

Когда вместо Cast To нужно использовать интерфейсы?

Интерфейсы нужны, когда вызывающему объекту не требуется знать конкретный класс цели. Вызов через Blueprint Interface не создаёт жёсткой зависимости и не тянет чужой ассет в оперативную память.

Исходный текст

SKILL.md · Apache-2.0
---
name: unreal-blueprints
description: >
  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.
---

# 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 `*.uproject` and Blueprint `*.uasset` files, 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

1. **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.
2. **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.
3. **Use the Event Graph for runtime logic.** `Event BeginPlay` for init, input/overlap events
   for reactions. Avoid `Event Tick` unless you truly need per-frame work.
4. **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.
5. **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.
6. **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)

```text
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)

```text
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)

```text
// 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)

```text
// 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 To` create 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 Tick` overuse** — 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 mark "Expose on Spawn".
- **Interface call did nothing** — the target doesn't implement the interface; use "Does
  Implement Interface" before calling, or use the Message version which is safe on non-implementers.
- **Local variable picks up an unexpected default value** — it shares its name with a member
  variable, and one can inherit the other's default. UE 5.8 refuses such names for new local
  variables, but older Blueprints keep existing collisions; rename one of the two by hand.

## References

- For a decision guide on **Cast vs Interface vs Event Dispatcher** and step-by-step dispatcher
  binding, read `references/communication.md`.
- Primary docs: "Blueprints Visual Scripting"
  (`https://dev.epicgames.com/documentation/en-us/unreal-engine/overview-of-blueprints-visual-scripting-in-unreal-engine`).

## Related skills

- `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.

© gamedev-skills · Apache-2.0 · gamedev-skills/awesome-gamedev-agent-skills

Похожие скиллы

Всё по теме «Геймдев и 3D: Unity, Unreal, Godot, Blender» →
ue-game-features quodsoler Настраивает модульный геймплей и плагины Game Features для Unreal Engine 5.8. Помогает писать действия UGameFeatureAction и внедрять компоненты в акторы. CX Codex +1 1 100установок unreal-engine-cpp-pro sickn33 Скилл для разработки на C++ в Unreal Engine 5.x: правила работы с UObject, сборщиком мусора, отражением и производительностью. CX Codex +1 1 400установок unreal-engine DSTN2000 Скилл обучает ассистента исследовать структуру проекта Unreal Engine перед написанием кода. Он находит файлы .uproject, сканирует ассеты и настраивает C++, Enhanced Input или GAS. CX Codex +1 511установок unreal-engine-skills-for-claude-code Epic Games Плагин даёт Claude доступ к запущенному Unreal Editor через MCP: акторы, блюпринты, материалы, Niagara, Sequencer и другие инструменты. ★ 1 634звёзд репо game-developer https://github.com/Jeffallan Скилл для разработки игр в Unity и Unreal Engine. Помогает строить системы игровой логики, настраивать физику, многопользовательские сети, шейдеры и оптимизировать производительность до 60+ FPS. CX Codex +1 6 400установок ue-cpp-foundations quodsoler Направляет агента при написании кода C++ для Unreal Engine 5.8: помогает настроить макросы рефлексии, сборщик мусора, подсистемы и умные указатели. CX Codex +1 1 400установок

Из того же набора77

pixijs-rendering Скилл для сборки слоя рендера на PixiJS v8: асинхронный Application, загрузка текстур, сцена на Container, тикер и события указателя. CX Codex +1 5 400установок unity-navmesh Скилл для ИИ-кодинга: печёт NavMesh на уровне Unity и водит NPC по маршруту через NavMeshAgent. Пригодится, когда враг должен догонять игрока, а не стоять на месте. CX Codex +1 5 500установок unity-tilemap-2d Помогает собирать и настраивать 2D-тайлмапы в Unity 6.3 LTS через скрипты и Tile Palette. Пригодится при расстановке тайлов, сборке коллайдеров и генерации уровней. CX Codex +1 5 500установок unreal-cpp-gameplay Учит агента писать геймплейный C++ под Unreal Engine 5: макросы рефлексии, классы Gameplay Framework, зависимости модуля в *.Build.cs. CX Codex +1 5 300установок pygame-core Скилл собирает каркас игры на pygame: игровой цикл, движение с учётом delta-time, ввод, спрайты и коллизии. Пригодится, когда проект начинается с import pygame. CX Codex +1 5 100установок bevy-ecs Держит агента в рамках ECS-модели Bevy: плагины, компоненты и ресурсы, системы с Query. Пригодится, когда проект на Rust уже тянет bevy и пора наводить порядок в системах. CX Codex +1 5 100установок unreal-packaging Помогает собрать проект Unreal Engine 5 в готовый билд через интерфейс редактора или утилиту RunUAT. Пригодится при настройке профилей сборки, кукинге контента и подготовке релизов для CI. CX Codex +1 5 200установок unreal-behavior-trees Скилл помогает собирать AI NPC в Unreal Engine 5 через Behavior Trees и Blackboards. Нужен для врагов, патрулей и реактивных веток поведения. CX Codex +1 5 200установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой