Ue Niagara Vfx logo

Ue Niagara Vfx

Community
kevinpbuckley
ue-niagara-vfx

Create and control visual effects using Unreal's Niagara system — UNiagaraSystem, UNiagaraComponent, UNiagaraFunctionLibrary; the system/emitter/module/parameter hierarchy; spawning effects at a world location or attached to an actor/socket (SpawnSystemAtLocation, SpawnSystemAttached); setting User Parameters from C++ (SetVariableFloat, SetVariableVec3, SetVariableActor, SetFloatParameter, SetColorParameter); CPU vs GPU simulation trade-offs; Data Interfaces (skeletal mesh, static mesh, collision); component lifetime management (bAutoDestroy, Activate/Deactivate, OnSystemFinished); and Niagara Data Channels. Use when spawning particle or VFX (fire, smoke, impacts, trails, magic), attaching effects to actors or sockets, driving an effect from gameplay parameters, choosing CPU vs GPU emitters, or migrating from Cascade (deprecated).

Overview

Publisherkevinpbuckley
Repositoryunreal-engine-skills
Skill nameue-niagara-vfx
Stars
89
Forks
9
Bundled files
3
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by kevinpbuckley on GitHub. Read the source before you install it.

Installation

Install the Ue Niagara Vfx AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/kevinpbuckley/unreal-engine-skills/tree/master/skills/core/ue-niagara-vfx
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kevinpbuckley/unreal-engine-skills.git /tmp/unreal-engine-skills
mkdir -p .claude/skills
cp -r /tmp/unreal-engine-skills/skills/core/ue-niagara-vfx .claude/skills/ue-niagara-vfx
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ue Niagara Vfx in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Ue Niagara Vfx on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Ue Niagara Vfx is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Niagara VFX

For effect-specific design, use ue-niagara-flamethrower for sustained flame jets, ue-niagara-renderers-and-materials for visible particle geometry, ue-niagara-sequenced-effects for timed multi-emitter effects, ue-niagara-custom-modules for custom particle logic and events, or ue-niagara-mesh-disintegration for mesh-sampled dissolution.

Niagara is Unreal's visual-effects system. It replaced Cascade (legacy — avoid for new work; a converter plugin exists). Effects are authored in the Niagara Editor as Systems composed of Emitters built from Modules, then spawned and parameterized from gameplay C++. Your role in C++ is: spawn a system, attach it, set its User Parameters, and manage its lifetime.

When to use this skill

  • Spawning particle/VFX at a world location or attached to an actor or socket.
  • Driving an effect from gameplay (color, intensity, beam target, spawn rate).
  • Choosing between CPU and GPU emitters and budgeting their performance cost.
  • Triggering effects from animation notifies or ability system cues.
  • Integrating Data Interfaces (skeletal mesh surface, collision, splines).

System/emitter/module hierarchy

LevelAsset typeRuntime typeRole
SystemUNiagaraSystemFNiagaraSystemInstance (internal)Top-level container; one per "effect" (e.g. NS_Explosion)
EmitterUNiagaraEmitterFNiagaraEmitterInstance (internal)One particle behavior set (sparks, smoke, decal); several per system
Modulescript assetcompiled HLSLSingle behavior (Add Velocity, Curl Noise, Sphere Location)
ParameterFNiagaraVariableFNiagaraParameterStoreTyped data (float, vector, bool, actor, DI) flowing through the stack

Execution flows top-to-bottom within each stack group: Emitter Spawn → Emitter Update → Particle Spawn → Particle Update → Event Handlers → Render. Each stage carries a namespace (System, Emitter, Particle, User, Engine) that controls read/write access.

User Parameters live in the User namespace and are the interface between C++ and the effect. Expose a parameter in the Niagara Editor, then set it at runtime.

Enable the Niagara plugin (on by default) and add "Niagara" to your module's Build.cs PublicDependencyModuleNames before using the C++ API.

Spawning from C++

cpp
#include "NiagaraFunctionLibrary.h"   // UNiagaraFunctionLibrary
#include "NiagaraComponent.h"         // UNiagaraComponent

// Fire-and-forget at a world location. bAutoDestroy=true (default) cleans up after completion.
UNiagaraComponent* Blast = UNiagaraFunctionLibrary::SpawnSystemAtLocation(
    this,           // world-context object
    BlastSystem,    // UPROPERTY(EditAnywhere) TObjectPtr<UNiagaraSystem>
    ImpactLocation,
    ImpactRotation);

// Attached to a component/socket — follows the actor, respects attachment rules.
UNiagaraComponent* Muzzle = UNiagaraFunctionLibrary::SpawnSystemAttached(
    MuzzleSystem, WeaponMesh, TEXT("MuzzleSocket"),
    FVector::ZeroVector, FRotator::ZeroRotator,
    EAttachLocation::SnapToTarget,
    /*bAutoDestroy*/ true);

Both functions return a UNiagaraComponent* (null if pre-cull check rejects it). Hold it in a UPROPERTY only when you need persistent control; for bursts, let bAutoDestroy handle cleanup.

For a persistent looping effect (aura, engine exhaust), create the component yourself:

cpp
// In actor constructor:
FX = CreateDefaultSubobject<UNiagaraComponent>(TEXT("FX"));
FX->SetupAttachment(GetRootComponent());
FX->SetAsset(AuraSystem);
FX->bAutoActivate = true;

// To toggle:
FX->Activate(/*bReset*/ true);
FX->Deactivate();                // stops emitting, lets existing particles finish
FX->DeactivateImmediate();       // kills particles immediately

Setting User Parameters at runtime

User parameters must be declared in the Niagara System editor (User namespace, exposed). Names must match exactly (case-sensitive, no namespace prefix needed via the Set* helpers):

cpp
// UFXSystemComponent base-class helpers (inherited by UNiagaraComponent):
FX->SetFloatParameter(TEXT("SpawnRate"),    500.f);
FX->SetColorParameter(TEXT("Color"),        FLinearColor::Red);
FX->SetVectorParameter(TEXT("BeamEnd"),     TargetLocation);
FX->SetActorParameter(TEXT("TargetActor"),  EnemyActor);

// UNiagaraComponent's own typed setters (use FName; preferred in 5.8):
FX->SetVariableFloat(TEXT("Intensity"),     1.5f);
FX->SetVariableVec3(TEXT("WindDir"),        FVector(1, 0, 0));
FX->SetVariableBool(TEXT("bIsActive"),      true);
FX->SetVariableInt(TEXT("BurstCount"),      5);
FX->SetVariableLinearColor(TEXT("BeamColor"), FLinearColor::Blue);
FX->SetVariableActor(TEXT("Target"),        TargetActor);

// Read back a parameter:
bool bValid = false;
float Rate = FX->GetVariableFloat(TEXT("SpawnRate"), bValid);

The SetNiagaraVariable* string-based variants (e.g. SetNiagaraVariableFloat) are deprecated since 5.3 — use the SetVariable* or Set*Parameter forms.

Component lifetime

PatternWhen to use
bAutoDestroy = true (default)One-shot bursts (impacts, hit sparks) — component destroys itself
Persistent UPROPERTY componentLooping or toggle-able effects (aura, engines)
Pool via ENCPoolMethodHigh-frequency spawning; pool reuse reduces allocation cost
cpp
// Subscribe to completion for custom cleanup or chaining:
FX->OnSystemFinished.AddDynamic(this, &AMyActor::OnFXFinished);

UFUNCTION()
void AMyActor::OnFXFinished(UNiagaraComponent* PSystem)
{
    // PSystem is finishing; if bAutoDestroy is false, destroy or return to pool here
}

Store persistent UNiagaraComponent* pointers in UPROPERTY members — bare pointers will be garbage collected (ue-memory-and-gc).

CPU vs GPU simulation

FeatureCPU emittersGPU emitters
Max particle count~tens of thousandsmillions
Gameplay read-backyes (position queries, events)not supported
Collisiondepth-buffer, distance-field, ray-trace (5.7), or nonedistance-field/scene-depth only
Per-particle callbacksyesno
Game-thread costscales with countnear-zero on game thread

Choose CPU when gameplay logic needs to read particle data or react to collisions. Choose GPU for massive counts (explosions, rain, ambient particles) where gameplay read-back is not required. Each emitter in a system chooses independently; a system can mix CPU and GPU emitters.

Data Interfaces

Niagara Data Interfaces (UNiagaraDataInterface, base class in NiagaraDataInterface.h) let emitters sample external data:

  • Skeletal Mesh DI — emit from surface triangles, bones, or sockets; sample bone positions.
  • Static Mesh DI — emit from static geometry; environment scatter.
  • Collision Query DI — distance-field or ray-traced collision per-particle.
  • Curve DI — sample a float/vector/color curve by time or particle age.
  • Spline DI — distribute particles along a USplineComponent.
  • Texture DI — sample a 2D texture for position/color masks.
  • Render Target DI — read or write a UTextureRenderTarget2D on the GPU.
  • Niagara Data Channel (5.3+) — cross-system particle communication via shared channels.

Set a mesh-based DI from C++ using the function library helpers:

cpp
// Bind a skeletal mesh component to a DI named "BodyMesh":
UNiagaraFunctionLibrary::OverrideSystemUserVariableSkeletalMeshComponent(
    FX, TEXT("BodyMesh"), GetMesh());

// Bind a static mesh component to a DI named "GroundMesh":
UNiagaraFunctionLibrary::OverrideSystemUserVariableStaticMeshComponent(
    FX, TEXT("GroundMesh"), StaticMeshComp);

Triggering from animation / gameplay events

  • Anim Notifies (ue-animation-system) — add a ANS_PlayNiagaraEffect notify to a montage or animation; it fires SpawnSystemAttached for you without C++.
  • Gameplay Cues (ue-gameplay-ability-system) — GAS spawns Niagara effects through UGameplayCueNotify subclasses; the cue handle targets the right location/effect automatically.
  • Custom events/delegates — call SpawnSystemAtLocation or Activate from any UFUNCTION wired to a delegate.

Component pool

UNiagaraFunctionLibrary::SpawnSystemAtLocation accepts ENCPoolMethod::AutoRelease or ENCPoolMethod::ManualRelease to pull from a world-level UNiagaraComponentPool. Pooling is beneficial when the same system is spawned at high frequency (gunshots, footsteps). Avoid pooling for rare or once-per-level effects.

Gotchas

  • Parameter name mismatch → Set*Parameter/SetVariable* silently no-ops; confirm names in the Niagara System editor (User namespace, exposed checkbox).
  • Calling Set* before the asset is assigned → parameters are queued but may not apply; set the asset first (SetAsset()), then set parameters.
  • Leaked persistent component — if bAutoDestroy = false and nothing destroys the component, it accumulates. Bind OnSystemFinished or call DestroyComponent().
  • Persistent component not in a UPROPERTY → GC'd mid-effect; store it as a member.
  • GPU emitter with gameplay read-back — not supported; the game thread cannot read per-GPU- particle data. Switch the emitter to CPU, or use NiagaraDataChannel for indirect communication.
  • Heavy CPU particle counts → game-thread cost scales linearly; move to GPU or reduce counts. Use stat Niagara and the Niagara Debugger for live budgeting.
  • Scalability culling — UNiagaraComponent integrates with the scalability manager; very- distant or budget-capped effects are pre-culled and SpawnSystemAtLocation returns null. Check for null before calling Set*.
  • Cascade assets — UParticleSystem and UParticleSystemComponent are legacy; new work should use Niagara. The Cascade-to-Niagara Converter plugin (editor-only) assists migration.

Version notes

  • SetNiagaraVariable* (string overloads) deprecated since 5.3; use SetVariable* (FName).
  • GetSystemInstance() deprecated since 5.0; use GetSystemInstanceController().
  • NiagaraDataChannel (cross-system communication) introduced in 5.3, expanded in 5.4/5.5.
  • Lightweight Emitters (reduced overhead for simple effects) are in active development; see the Niagara Lightweight Emitters doc for current status.

References & source material

Engine source (UE 5.8, Engine/Plugins/FX/Niagara/Source/Niagara/):

  • Public/NiagaraComponent.h — UNiagaraComponent: Activate:226, Deactivate:227, SetFloatParameter:72, SetColorParameter:74, SetVectorParameter:73, SetActorParameter:75, SetVariableFloat:533, SetVariableVec3:506, SetVariableActor:558, SetVariableBool:551, SetVariableInt:542, OnSystemFinished:754, bAutoDestroy:176, SetAsset:295, SetEmitterEnable:78.
  • Classes/NiagaraSystem.h — UNiagaraSystem (derives UFXSystemAsset):238, GetExposedParameters:368, GetEmitterHandles:313.
  • Public/NiagaraFunctionLibrary.h — UNiagaraFunctionLibrary: SpawnSystemAtLocation:93, SpawnSystemAttached:96, OverrideSystemUserVariableSkeletalMeshComponent:112, OverrideSystemUserVariableStaticMeshComponent:102.
  • Classes/NiagaraDataInterface.h — UNiagaraDataInterface base class.
  • Classes/NiagaraDataInterfaceSkeletalMesh.h — UNiagaraDataInterfaceSkeletalMesh.
  • Public/NiagaraActor.h — ANiagaraActor (actor wrapper, SetDestroyOnSystemFinish).

Official docs (UE 5.8):

Deep-dive references in this skill:

Related skills: ue-animation-system, ue-gameplay-ability-system, ue-materials-and-shaders, ue-asset-management, ue-memory-and-gc.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Ue Niagara Vfx AI skill do?

Create and control visual effects using Unreal's Niagara system — UNiagaraSystem, UNiagaraComponent, UNiagaraFunctionLibrary; the system/emitter/module/parameter hierarchy; spawning effects at a world location or attached to an actor/socket (SpawnSystemAtLocation, SpawnSystemAttached); setting User Parameters from C++ (SetVariableFloat, SetVariableVec3, SetVariableActor, SetFloatParameter, SetColorParameter); CPU vs GPU simulation trade-offs; Data Interfaces (skeletal mesh, static mesh, collision); component lifetime management (bAutoDestroy, Activate/Deactivate, OnSystemFinished); and Niag...

Why use Ue Niagara Vfx on TypingMind?

Because you install it once and use it with any model. Ue Niagara Vfx is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Ue Niagara Vfx in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/kevinpbuckley/unreal-engine-skills/tree/master/skills/core/ue-niagara-vfx. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Ue Niagara Vfx?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Ue Niagara Vfx?

As many as you like. As long as a model supports skills, you can use Ue Niagara Vfx with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Ue Niagara Vfx AI skill free?

It is published on GitHub by kevinpbuckley. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇