unreal-niagara
БесплатноБез исполняемых скриптовНе проверенUnreal Engine 5 (UE 5.8) Niagara VFX: systems, emitters, User parameters, spawning from C++ or Blueprints, bounds and GPU vs CPU sim. Use for any Unreal…
от gamedev-skills★ 12 656 звёзд на GitHubОб этом скилле
Unreal Niagara VFX
Build UE5 effects that gameplay can spawn, drive and clean up, and that keep rendering where the camera actually looks. Targets UE 5.8. Niagara replaced Cascade, which is deprecated.
When to use
- Creating or editing Niagara Systems (
NS_) and Emitters (NE_), module order, User parameters, renderers, bounds and scalability. - Spawning, attaching, parameterizing, pooling or stopping effects from C++ or Blueprints.
- Debugging effects that don't appear, cull wrongly, leak or cost too much.
When not to use: Unity VFX Graph or particles in other engines are not covered here.
Material and shader logic → shader-programming. Juice such as screen shake and hit-stop →
game-feel. Audio for the effect → audio-design.
Workflow
- Read the project. Check
EngineAssociation, list existingNS_*/NE_*assets and emitter templates, and grepSourceforUNiagaraComponentto find the spawn path already in use. C++ access needs"Niagara"in the module's*.Build.cs; without it the includes compile and the link fails. - Expose what gameplay changes as User parameters. Only the
Usernamespace can be set from Blueprint or C++;System,EmitterandParticlevalues are internal to the sim. - Order modules deliberately. Modules run top to bottom in each stage, so a force placed before the module that initializes velocity acts on zero.
- Pick the sim target. Default to CPU for small counts and anything gameplay reacts to (events, collision callbacks); use GPU for large counts of purely visual particles, and give GPU emitters fixed bounds.
- Spawn from gameplay, never from the Construction Script.
UNiagaraFunctionLibrary::SpawnSystemAtLocationfor world-space one-shots,SpawnSystemAttachedfor effects that follow a component or socket. For frequent one-shots (impacts, footsteps) pass a pooling method instead of creating a component each time. - Own the lifetime. One-shots use a non-looping system with auto-destroy or auto-release;
looping effects keep the returned component and call
Deactivate()when done. - Check it (see Verify).
Patterns
One-shot impact (pooled) and a driven looping effect
#include "NiagaraFunctionLibrary.h"
#include "NiagaraComponent.h"
void AProjectile::SpawnImpact(const FVector& Location, const FRotator& Rotation)
{
// ImpactSystem: UPROPERTY(EditAnywhere) TObjectPtr<UNiagaraSystem>, non-looping.
UNiagaraFunctionLibrary::SpawnSystemAtLocation(
GetWorld(), ImpactSystem, Location, Rotation, FVector(1.f),
/*bAutoDestroy*/ true, /*bAutoActivate*/ true, ENCPoolMethod::AutoRelease);
// With AutoRelease the component goes back to the pool when it finishes:
// don't keep the returned pointer.
}
void ATorch::BeginPlay()
{
Super::BeginPlay();
Fire = UNiagaraFunctionLibrary::SpawnSystemAttached( // Fire: UPROPERTY TObjectPtr<UNiagaraComponent>
FireSystem, RootComponent, NAME_None, FVector::ZeroVector, FRotator::ZeroRotator,
EAttachLocation::KeepRelativeOffset, /*bAutoDestroy*/ false);
if (Fire) // null on servers or when pre-culled
{
Fire->SetVariableFloat(TEXT("SpawnRate"), 250.f); // the User.SpawnRate parameter
Fire->SetVariableLinearColor(TEXT("FireColor"), FLinearColor::Red);
}
}
Blueprint uses the same nodes: Spawn System at Location or Spawn System Attached, then Set Niagara Variable (Float, LinearColor and so on) on the returned component.
Verify
Say which of these you ran.
- Compile the module (
Build.bat/Build.shas inunreal-cpp-gameplay). - Validate assets:
UnrealEditor-Cmd <Project>.uproject -run=DataValidation -unattendedand fix errors in the systems you touched. - Functional test for gameplay-spawned effects: spawn the system in a test map, assert the
returned component is valid and active, then (for a one-shot) that it has finished after its
lifetime. Niagara needs a renderer, so run it with
-RenderOffscreenrather than-nullrhi:UnrealEditor-Cmd <Project>.uproject -ExecCmds="Automation RunTest Project.Functional Tests;Quit" -unattended -RenderOffscreen -ReportExportPath="<dir>". - Ask the user to run PIE and use the Niagara Debugger (Tools > Debug > Niagara Debugger)
or the console:
fx.Niagara.Debug.Hud Enabled=1for the debug HUD,fx.Niagara.DumpComponentsto list live components in the log,stat Niagarafor cost. Ask them to report whether the effect appears, whether it disappears when its origin leaves the screen (bounds), and the active component count after a minute of play (leaks). - Optional: Epic's
unreal-mcpskill can author and inspect Niagara systems in a running editor when it is installed; the checks above do not need it.
Gotchas
- Setting a parameter does nothing: it isn't in the
Usernamespace, or the name pa
Установить unreal-niagara в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл unreal-niagara?
Unreal Engine 5 (UE 5.8) Niagara VFX: systems, emitters, User parameters, spawning from C++ or Blueprints, bounds and GPU vs CPU sim. Use for any Unreal particle effect, NS_ assets, muzzle flashes or impacts, or effects that do not show, vanish at the screen edge or never stop. Not for Unity VFX Graph, shader authoring (`shader-programming`) or hit-stop (`game-feel`).
Как установить скилл unreal-niagara?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл unreal-niagara запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
slack-gif-creator
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
от Anthropicautomate-this
Analyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
от GitHubfrom-the-other-side-vega
Patterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
от GitHubplantuml-ascii
Generate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…
от GitHub