ue-actor-component-arc…
Use when writing or debugging AActor and UActorComponent C++: constructor vs BeginPlay, PostInitializeComponents, EndPlay…
Use when driving Niagara VFX from C++: spawning a system, overriding User parameters, binding data interfaces, sending gameplay data through Niagara Data Channels, pooling components or handling OnSystemFinished. Also use when the user mentions 'Niagara', 'particle system',
Claude Code
$ npx -y skills add quodsoler/unreal-engine-skills --skill ue-niagara-effects --agent claude-code
Codex
$ npx skills add quodsoler/unreal-engine-skills --skill ue-niagara-effects -a codex -y
Cursor
$ npx skills add quodsoler/unreal-engine-skills --skill ue-niagara-effects -a cursor -y
Gemini CLI
$ npx skills add quodsoler/unreal-engine-skills --skill ue-niagara-effects -a gemini-cli -y
GitHub Copilot
$ npx skills add quodsoler/unreal-engine-skills --skill ue-niagara-effects -a github-copilot -y
OpenCode
$ npx skills add quodsoler/unreal-engine-skills --skill ue-niagara-effects -a opencode -y
Windsurf
$ npx skills add quodsoler/unreal-engine-skills --skill ue-niagara-effects -a windsurf -y
name: ue-niagara-effects description: "Use when driving Niagara VFX from C++: spawning a system, overriding User parameters, binding data interfaces, sending gameplay data through Niagara Data Channels, pooling components or handling OnSystemFinished. Also use when the user mentions 'Niagara', 'particle system', 'VFX', 'UNiagaraComponent', 'UNiagaraFunctionLibrary', 'SpawnSystemAtLocation', 'SpawnSystemAttached', 'SetVariableFloat', 'User. parameter', 'data interface', 'ENCPoolMethod', 'sim cache', 'lightweight emitter', 'muzzle flash' or 'impact effect'. For particle materials and dynamic material instances, see ue-materials-rendering; for audio-reactive effects, see ue-audio-system." metadata: version: "2.0.0" engine: "5.8"
Target engine: **UE 5.8**. APIs below are verified against the 5.8 headers; older forms are listed under "Deprecated — do not use".
Niagara ships as the `Niagara` plugin (`Engine/Plugins/FX/Niagara`, enabled by default). Game code spawns and drives systems through `UNiagaraFunctionLibrary` and `UNiagaraComponent`, feeds them structured data through data interfaces and Niagara Data Channels, and controls cost through component pooling and `UNiagaraEffectType` scalability. Add `"Niagara"` to your module's `PublicDependencyModuleNames`, plus `"NiagaraCore"` when you subclass `UNiagaraDataInterface`.
Read `.agents/ue-project-context.md` if it exists (module names, conventions, enabled plugins, GAS/networking setup). Do not stop if it is missing.
Identify the area from the request and the codebase. Ask only when two plausible readings would produce different code.
| Request is about… | Go to | |---|---| | Asset, emitter and component relationships | [System and Component Model](#system-and-component-model) | | Firing an effect, attaching a trail | [Spawning Systems](#spawning-systems) | | Activate, reset, pause, seek | [Lifecycle Control](#lifecycle-control) | | Pushing floats, colors, vectors into an effect | [Setting User Parameters](#setting-user-parameters) | | Skeletal/static mesh, curve, array, texture DIs | [Data Interfaces](#data-interfaces) | | Exposing game-specific data to Niagara scripts | [Custom Data Interfaces](#custom-data-interfaces) | | Gameplay events into Niagara, VFX-to-VFX messaging | [Niagara Data Channels](#niagara-data-channels) | | Knowing when an effect is done | [Completion Callbacks](#completion-callbacks) | | Recording and replaying a simulation | [Simulation Caches](#simulation-caches) | | Cheap high-count emitters | [Lightweight Emitters](#lightweight-emitters) | | Spawn cost, reuse, priming | [Component Pooling](#component-pooling) | | Culling, tick order, determinism | [Scalability and Tick Behavior](#scalability-and-tick-behavior) | | Build.cs and includes | [Build Setup](#build-setup) |
UNiagaraSystem asset; holds TArray<FNiagaraEmitterHandle>
└── FNiagaraEmitterHandle GetEmitterBase() -> UNiagaraEmitterBase
├── UNiagaraEmitter ENiagaraEmitterMode::Standard (stateful, scripted)
└── UNiagaraStatelessEmitter ENiagaraEmitterMode::Stateless (lightweight)
UNiagaraComponent runtime instance; GetSystemInstanceController()Authors expose parameters to C++ by placing them in the `User.` namespace in the Niagara editor. Only `User.*` parameters can be overridden at runtime; `System.*`, `Emitter.*`, `Particle.*` and `Module.*` are simulation-internal.
Discover what an asset exposes without opening the editor:
#include "NiagaraFunctionLibrary.h" // FNiagaraUserParameterInfo: ParameterName, ParameterType, TypeName. const TArray<FNiagaraUserParameterInfo> Params = UNiagaraFunctionLibrary::GetAllUserParameters(ImpactSystem); // FNiagaraMinimalEmitterInfo: EmitterName, bIsEnabled, bIsLightweight, UsedRendererMaterials, UsedRendererMeshes. const TArray<FNiagaraMinimalEmitterInfo> Emitters = UNiagaraFunctionLibrary::GetAllEmitters(ImpactSystem);
#include "NiagaraComponent.h"
#include "NiagaraFunctionLibrary.h"
// One-shot at a world location. Returns nullptr on dedicated servers and when the
// pre-cull check rejects the spawn, so always null-check.
UNiagaraComponent* ImpactVFX = UNiagaraFunctionLibrary::SpawnSystemAtLocation(
this, // const UObject* WorldContextObject
ImpactSystem, // UNiagaraSystem*
HitLocation, // FVector Location
FRotator::ZeroRotator, // FRotator Rotation
FVector(1.0f), // FVector Scale
/*bAutoDestroy=*/ true,
/*bAutoActivate=*/ true,
ENCPoolMethod::AutoRelease,
/*bPreCullCheck=*/ true);
if (ImpactVFX)
{
ImpactVFX->SetVariableVec3(FName("User.HitNormal"), HitNormal);
ImpactVFX->SetVariableLinearColor(FName("User.HitColor"), DamageColor);
}Attached, persistent effect. Note the argument order: `bAutoDestroy` comes before `bAutoActivate` here.
UNiagaraComponent* TrailVFX = UNiagaraFunctionLibrary::SpawnSystemAttached(
TrailSystem,
WeaponMesh, // USceneComponent* AttachToComponent
FName("MuzzleSocket"), // FName AttachPointName
FVector::ZeroVector,
FRotator::ZeroRotator,
EAttachLocation::SnapToTarget,
/*bAutoDestroy=*/ false,
/*bAutoActivate=*/ true,
ENCPoolMethod::ManualRelease,
/*bPreCullCheck=*/ true);A second `SpawnSystemAttached` overload inserts `FVector Scale` after `Rotation` and then orders the tail as `LocationType, bAutoDestroy, PoolingMethod, bAutoActivate, bPreCullCheck`. Pick one overload deliberately; the two are easy to confuse.
`SpawnSystemAtLocationWithParams` and `SpawnSystemAttach
A collection of 31 AI agent skills for Unreal Engine C++ development. Built for game developers who want AI coding agents to help write correct, production-quality UE5 C++ code.
Use when writing or debugging AActor and UActorComponent C++: constructor vs BeginPlay, PostInitializeComponents, EndPlay…
Use when writing Unreal Engine C++ AI — AI controllers, behavior tree nodes, blackboards, AI perception, navmesh pathfinding, EQS…
Use when writing or debugging Unreal Engine animation C++: AnimInstance subclasses, thread-safe update, FAnimInstanceProxy,…
Use when offloading work off the game thread, dispatching results back to it, running data-parallel loops, or scheduling timers…
Use when playing, mixing or debugging sound in Unreal Engine — one-shot SFX, looping ambience, music, dialogue or procedural…
Use when exposing C++ to Blueprint or calling Blueprint from C++: UFUNCTION(BlueprintCallable), BlueprintPure,…
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
Design and build AI agents for any domain. Use when users: (1) ask to "create an agent", "build an assistant", or "design an AI…