unreal-niagara
Workflow for authoring, tuning, diagnosing, and validating Unreal Engine Niagara VFX through UEEditorMCP. Use for Niagara systems, emitters, renderers, module inputs, static switches, Data Channels, compile diagnostics, and visual preview validation.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- unreal-niagara
- description
- Workflow for authoring, tuning, diagnosing, and validating Unreal Engine Niagara VFX through UEEditorMCP. Use for Niagara systems, emitters, renderers, module inputs, static switches, Data Channels, compile diagnostics, and visual preview validation.
02 资源文件 2
- 参考文档examples/ndc-gameplayburst-damage-text.md4.5 KB
- 参考文档examples/paper-dust-falling.md3.4 KB
03 SKILL.md 正文
Unreal Niagara MCP Skill
Context
- Repository rules:
AGENTS.md - Related skills: Editor workflows, UEEditorMCP, Blueprint/Widget, Material, C++
- Examples load on demand: paper-dust-falling, ndc-gameplayburst-damage-text
Use this skill for creating, duplicating, repairing, tuning, previewing, and saving Niagara systems. Do not use it for gameplay-side spawning code, Blueprint graph logic, UMG, or Material graph authoring.
Preconditions
- Confirm editor connectivity with
ue_ping. - Use an interactive editor session for visual VFX validation; headless
-nullrhicannot validate real rendering, GPU collision, or viewport behavior. - For unknown actions, run
ue_actions_search("niagara")thenue_actions_schema(action_id=...). - Use
ue_batchfor dependent edits and compact results unless diagnosing failures. - Resolve engine source from
.uprojectbefore investigating native Niagara implementation details.
Safe Workflow
- Inspect:
niagara.get_system_summary,niagara.get_module_inputs,niagara.find_scripts, and renderer summaries when available. - Scope: preserve user-named existing systems and patch in place. Create/duplicate only for new assets, probes, or explicit replacement.
- Render: set mesh/material/bindings before fine tuning.
- Tune: edit module inputs, emitter properties, static switches, and renderer properties.
- Validate:
niagara.get_compile_diagnostics(refresh_compile=true, wait=true). - Preview: use Niagara preview timeline for visual checks; spawn into a level only when requested, then clean up temporary actors.
- Save: call
editor.save_loaded_assetfor the explicit validated system. Useeditor.save_allonly with user-approved all-dirty-package scope.
Core Read Actions
| Action | Use |
|---|---|
niagara.get_compile_diagnostics |
Authoritative compile status; inspect events[] and stack_issues[]. |
niagara.get_module_inputs |
Real module/input names, hidden inputs, override pins, bindings, stale overrides. |
niagara.get_system_summary |
System path, emitters, parameters, quick inventory. |
niagara.find_scripts |
Resolve module scripts with narrow path / name_filter. |
niagara.get_script_digest |
Script metadata when usage or module path is uncertain. |
Core Write Actions
| Action | Use |
|---|---|
niagara.create_system |
Create/duplicate systems; use template_system_path and explicit if_exists. |
niagara.set_module_input |
Scalar/vector/bool rapid-iteration values. |
niagara.set_module_input_binding |
Bind inputs to parameters, particle attributes, engine values, or dynamic expressions. |
niagara.set_module_enabled |
Toggle modules; prefer tuning to near-zero when disabling risks stage imbalance. |
niagara.set_module_static_int |
Static switches and enum-like settings such as GPU collision type. |
niagara.set_emitter_property |
SimTarget, local space, determinism, persistent IDs, and other reflected properties. |
niagara.set_renderer_mesh/material/binding |
Renderer assets, overrides, attribute bindings. |
niagara.add_module/add_renderer/add_emitter |
Add only after proving the target is absent or composition is intended. |
Parameter Conventions
stage:system_spawn,system_update,emitter_spawn,emitter_update,particle_spawn,particle_update.module_name: stack display name, e.g.SpawnRate,Collision,GravityForce.input_name: module input display name, e.g.SpawnRate,Box Size.value_type:float,int,bool,vec2,vec3,vec4,color; vectors/colors use numeric arrays.
Production Rules
- Never duplicate a Collision module just to change collision behavior; inspect and tune the existing module.
- Collision must run before the solver that consumes collision response in the same effective simulation step.
- CPU collision uses trace channels; GPU collision depends on scene depth or mesh distance fields and project settings.
- Many templates contain multiple shape modules; inspect all shape modules before changing emission area.
- Unexpected
has_override_pin=trueoroverride_unlinkedmeans inspect pins/order before resetting or replacing anything. - Data Channel systems require runtime proof beyond compile success. Preserve reader modules, current-frame flags, auto-link behavior, and emitter-id bindings unless a before/after probe proves they are wrong.
Validation Contract
- Always run
niagara.get_compile_diagnostics(refresh_compile=true, wait=true)after a meaningful edit batch. - Read error display text instead of guessing.
- If diagnostics pass but viewport behavior is wrong, inspect module inputs and run interactive preview.
- For logs, use
unreal.logs.get(filter.category="LogNiagara", filter.minVerbosity="Warning").
Extending MCP
Niagara handlers, when this plugin exists, usually live under Plugins/UEEditorMCP/Source/UEEditorMCP/{Public,Private}/Actions/ and registry schemas under Plugins/UEEditorMCP/Python/ue_editor_mcp/registry/actions/. Verify paths in the current repository before editing.
Add/adjust schema, implement the C++ handler if needed, register it, rebuild/restart through launcher MCP, then use the new action.
Delivery
Report changed system path, emitters/modules/renderers touched, compile diagnostics, preview method, saved status, and any manual visual validation that remains.
04 同仓库更多 Skills
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
internal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).
web-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
algorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.