Skip to main content

Niagara

NiagaraParticle allows you to spawn advanced visual effects using Unreal Engineโ€™s Niagara VFX system. Niagara is a modular particle system designed for real-time simulations such as fire, smoke, sparks, explosions, magic, trails, and complex environmental effects. This class makes it easy to trigger those systems at runtime, giving you dynamic control over visuals, behavior, and performance features like pooling and auto-destructionng.

Constructorโ€‹

Example
local fx = NiagaraParticle(
Vector(0, 0, 200),
Rotator(0, 90, 0),
"/Game/VFX/MySystem.MySystem",
true,
Vector(1, 1, 1),
true,
UE.ENCPoolMethod.AutoRelease,
false
)
NameTypeDefaultDescription
LocationVector(0,0,0)World-space spawn position
RotationRotator(0,0,0)Initial rotation
AssetPathstringRequiredPath to the Niagara asset (must be valid)
bAutoDestroybooleantrueWhether to destroy after effect completes
ScaleVector(1,1,1)Spawn scale
bAutoActivatebooleantrueWhether the effect should auto-start
PoolingMethodENCPoolMethodENCPoolMethod.NonePooling behavior (None, AutoRelease, etc.)
bPreCullCheckbooleanfalseSkip spawning if off-screen
โœจ