ue-niagara-vfx

Create and control Unreal Engine Niagara visual effects from gameplay C++ code.

55|5|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/kevinpbuckley/unreal-engine-skills --skill ue-niagara-vfx-kevinpbuckley
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ue-niagara-vfx
Source: https://github.com/kevinpbuckley/unreal-engine-skills/tree/main/skills/core/ue-niagara-vfx
Command: npx skills add https://github.com/kevinpbuckley/unreal-engine-skills --skill ue-niagara-vfx-kevinpbuckley

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Writing correct Unreal Engine C++ code for Niagara VFX requires knowing exact API signatures, the system/emitter/module hierarchy, parameter namespaces, and CPU vs GPU simulation trade-offs. This Skill gives an AI agent the domain knowledge to spawn, attach, parameterize, and manage the lifetime of Niagara effects without guessing at deprecated APIs or hitting silent failures. ## Core Features & Use Cases - Spawning and attaching effects: Use UNiagaraFunctionLibrary::SpawnSystemAtLocation and SpawnSystemAttached for fire-and-forget bursts or socket-attached effects, with correct bAutoDestroy and pooling semantics. - Runtime parameter control: Set User Parameters from C++ with SetVariableFloat, SetVariableVec3, SetVariableActor, and related typed setters, avoiding deprecated SetNiagaraVariable* string overloads. - CPU vs GPU and Data Interfaces: Choose the right simulation path, bind skeletal/static mesh Data Interfaces, and use Niagara Data Channels for cross-system communication. - Use Case: When a weapon hits a surface, spawn an impact effect at the hit location, orient it to the impact normal, and pass damage and surface color as User Parameters so the effect reacts to gameplay. ## Quick Start Use the ue-niagara-vfx skill to spawn an explosion Niagara system at a hit location and set its intensity and color parameters from C++.

Frequently Asked Questions about ue-niagara-vfx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I spawn a Niagara effect at a location in Unreal C++?

Call UNiagaraFunctionLibrary::SpawnSystemAtLocation with the world context, a UNiagaraSystem asset, location, and rotation. It returns a UNiagaraComponent that self-destructs when bAutoDestroy is true, which is the default for one-shot bursts.

How do I set Niagara User Parameters from C++?

Use the typed setters on UNiagaraComponent such as SetVariableFloat, SetVariableVec3, SetVariableActor, and SetVariableLinearColor with the exact parameter name. The older SetNiagaraVariable* string overloads are deprecated since UE 5.3.

Should I use CPU or GPU emitters in Niagara?

Use CPU emitters when gameplay needs to read particle data or react to collisions, scaling to tens of thousands of particles. Use GPU emitters for massive counts like explosions or rain where no gameplay read-back is needed.

Why does my Niagara SetVariableFloat call do nothing?

The parameter name must exactly match an exposed User Parameter declared in the Niagara System editor, and mismatches silently no-op. Also ensure the asset is assigned via SetAsset before setting parameters, and null-check the component since scalability pre-culling can make spawn functions return null.

Can I still use Cascade particle systems in Unreal Engine 5?

Cascade (UParticleSystem) is legacy and deprecated; new work should use Niagara. Epic provides a Cascade-to-Niagara Converter editor plugin to assist migrating existing assets.

How do I attach a Niagara effect to a character socket?

Use UNiagaraFunctionLibrary::SpawnSystemAttached with the target scene component, socket name, and EAttachLocation::SnapToTarget. The effect then follows the actor and respects attachment rules automatically.