Niagara and Cascade particles¶
UE2GD only
Particle systems are in the full edition. In UE2GD Lite, each Niagara or Cascade component becomes a placeholder, listed as particle systems (paid edition only).
Map: Post-Soviet World by GeorgeShachnev, on Fab.
Niagara particle systems are converted approximately. Each system is written once as a prefab scene,
res://ue2godot/<same folders as in Unreal>/<System>.tscn: a Node3D with one CPUParticles3D per emitter, or a
GPUParticles3D with a ParticleProcessMaterial for GPU emitters. Each component in the level is an instance of its
system's scene, so you can also drop the prefab into your own scenes.
-
The scene's root plays its emitters together, as Unreal plays a system: it carries
res://ue2godot/Particles/ue2godot_particles.gd(classUE2GDParticleSystem), with- an Emitting checkbox that starts and stops every emitter at once (set
emittingfrom code to activate or deactivate the effect), - a Restart button that replays the effect from the start, in the editor too, where Unreal has Simulate:
press it to watch an explosion go off;
restart()does the same from code, - a
finishedsignal, when every emitter of a one-shot effect is done (never for looping effects).
It leaves sub-emitters alone (their emitter's particles start them). An edited copy of the script is kept on re-export. - A component that doesn't auto-activate has
emittingturned off on the instance. - Lightweight (stateless) emitters are converted too, as GPUParticles3D. - With Niagara template prefabs on (the default), Niagara's own emitter and system templates are converted the same way, underres://ue2godot/Niagara/DefaultAssets/Templates/. - an Emitting checkbox that starts and stops every emitter at once (set
Tweaking an effect¶
Select a particle system's instance and change its look in the Inspector, without opening the prefab. Each instance keeps its own values. While a scene saves, the emitters go back to their exported settings, so a tweak lives only in these fields and is never baked into the prefab or the instances sharing it.
Every system's root has a Tweak group that scales all its emitters at once:
| Field | What it changes |
|---|---|
| Amount Scale | how many particles every emitter keeps alive (changing it restarts them) |
| Velocity Scale | how fast particles start moving |
| Size Scale | particle size, and a beam's width |
| Lifetime Scale | how long particles live (changing it restarts them) |
| Gravity Scale | how strongly gravity and wind pull |
| Time Scale | playback speed: below 1 is slow motion |
| Colour Tint | multiplies every emitter's colour, and a beam's |
Rain and Niagara's templates get an effect script instead. It extends UE2GDParticleSystem and adds fields named
for that effect, which start at the exported values (the Tweak scales still apply on top). The scripts are in
res://ue2godot/Particles/Templates/:
| Script (class) | Used for | Fields |
|---|---|---|
rain.gd (UE2GDRain) |
rain: its streaks (velocity-aligned sprites) fall from a system named rain, or from one with 1,000+ particles over an area 4 m or wider, pulled down | Intensity, Fall Speed, Wind, Area, Height, Drop Length, Drop Width |
fountain.gd (UE2GDFountain) |
Fountain, Fountain Lightweight | Particles, Speed, Spread, Gravity, Lifetime |
burst.gd (UE2GDBurst) |
Confetti, Directional, Omnidirectional, Upward Mesh and Radial Burst, Directional Burst Lightweight | Count, Speed, Direction, Spread, Gravity, Lifetime |
explosion.gd (UE2GDExplosion) |
Simple Explosion | Spark Count and Speed, Debris Count and Speed, Flash Size and Time |
trails.gd (UE2GDTrails) |
Attribute Reader Trails | Leaders, Speed, Spread, Trail Particles, Trail Length |
ambient.gd (UE2GDAmbient) |
Hanging Particulates, Blowing Particles, Recycle Particles In View | Count, Area, Drift, Turbulence, Lifetime |
beam.gd (UE2GDBeam) |
Static Beam, Dynamic Beam | Width, Length, Colour |
single_particle.gd (UE2GDSingleParticle) |
Single Looping Particle, Simple Sprite Burst, Minimal Lightweight | Size, Lifetime, Colour |
- A burst's fields are those of its main emitter, the one with the most particles. Its other emitters (a radial burst's trails, a second mesh) follow in proportion.
- The rain's fields drive its drops (its emitter with the most particles). Splashes are left as they are.
- An explosion or trail effect whose part was renamed or deleted leaves that part's fields alone.
All of these work from code too: $Rain.wind = Vector2(4, 0), $Burst.count = 300.
To make your own, extend ue2godot_particles.gd:
- read your fields from the emitters in
_read_fields(); - set them in
_tweak()withput(emitter, property, value), which finds where the setting lives (a GPU emitter's process material, a CPU emitter's node).
As with the root script, an edited copy of a script is kept on re-export.
What carries over¶
Spawn rate and bursts, lifetime, initial velocity (including cones), colour and size, colour and size curves over a particle's life, gravity, drag (as damping), emission shape, looping, and visibility bounds (fixed bounds where the system has them).
Forces¶
Approximated with Godot's own:
- Vortex Force becomes tangential acceleration around the vortex axis. Godot circles particles around its gravity's direction, so an emitter without gravity gets a tiny gravity (0.001 m/s²) along the axis.
- Curl Noise Force becomes turbulence, set to turn particles about as hard. Only GPU particles have turbulence, so an emitter with curl noise becomes a GPUParticles3D even if Unreal simulates it on the CPU. The noise pattern and size are Godot's own.
Renderers¶
- Sprite renderers become camera-facing quads, at the sprite's aspect. Each sprite material is converted to a
Godot shader (
<Material>_Particle.tresbeside its mirrored path), with the texture it shows exported as it is: its blend mode (translucent, additive, masked, modulate), lit or unlit, the particle colour tinting it, a Depth Fade, and a flipbook (Sub UV) stepping or blending through its frames as the particle ages. Sprites with Niagara's default material are drawn withres://ue2godot/Niagara/DefaultAssets/DefaultSpriteMaterial.tres, which matches it: additive, unlit, two-sided, a soft dot in the particle colour. Velocity-aligned sprites (rain, sparks) stretch along where they fly and, as in Unreal, ignore the sprite rotation. - Sub UV Animation plays the flipbook set by the renderer's Sub Image Size: once over a particle's life from its start frame to its end frame (Linear), a random frame (Random), or at its frame rate, looping (Infinite).
- Mesh renderers use the exported mesh. A mesh renderer facing the velocity aligns particles to where they fly,
drawing a copy of the mesh turned to suit (
<Mesh>__velocity.res). A mesh renderer with several meshes becomes one emitter per mesh, each with its share of the particles. Random initial mesh orientation turns meshes at random about their up axis. - Several renderers on one emitter each draw the same particles, from copies of the emitter with the same seed.
- Ribbon renderers trailing another emitter's particles (Spawn Particles from Other Emitter, or location events)
become Godot particle trails: a copy of the emitter they follow, with the same seed so its particles move with the
leader's, drawing a
RibbonTrailMesh(two crossed ribbons, as Unreal's flat ribbons turn to face the camera) or aTubeTrailMeshfor tube ribbons, as wide as the ribbon and as long as its particles live. The ribbon material is converted as a sprite material is, with Unreal's ribbon UVs (<Material>_Particle_trail.tres). In Unreal the ribbon's points die one by one once its leader dies, so it shortens into where its head was; a Godot trail is gone the moment its particle dies. So the particle turns invisible one trail length before it dies: the trail's head stops there and its tail catches up, gone as the particle dies. Its head stops early by that much, and a ribbon living longer than half its leader's particles' life is cut to half (reported). This works through the particles' alpha (each trail point keeps the colour its particle had there), so it needs the ribbon material to use Particle Color's alpha, as ribbon materials normally do. - Beams (Beam Emitter Setup) become a
MeshInstance3D: a flat ribbon from the beam's start to its end that turns about its length to face the camera, as wide along it as the beam's width curve, in the beam's colour (<Material>_Particle_beam.tres). - Light renderers become one
OmniLight3Dat the emitter, in the particles' colour, reaching as far as they do.
Events and other emitters¶
Godot particles can spawn particles of one other emitter, its sub-emitter:
- An emitter spawned from another's particles (Spawn Particles from Other Emitter, or an event handler reading a location, death or collision event) becomes that emitter's sub-emitter, emitting from its particles: constantly for location events and spawning from particles, as they die for death events, and where they hit for collision events. Both become GPUParticles3D, as only GPU particles have sub-emitters. Sampling the other emitter's size and colour copies its particles' starting size and colour.
- Each emitter spawns at most one sub-emitter; further ones are left out and listed in the build report.
Renderer
Particle trails and sub-emitters need Godot's Forward+ or Mobile renderer (Forward+ is the default for exported projects). The Compatibility renderer draws neither.
Collision and wind¶
- Collision becomes Godot's particle collision (GPU only): particles bounce with the module's restitution and
friction, or vanish where they hit when the module kills them. Godot particles collide with collider nodes, so the
scene gets one: a thin
GPUParticlesCollisionBox3Dunder an analytical plane, or aGPUParticlesCollisionHeightField3Dover the emitter's reach standing for the scene (depth buffer, distance field or traces), so particles hit what is below them. - Wind Force becomes acceleration along the wind.
Not converted yet¶
The emitter converts without them:
- Aligning sprites to mesh orientation: particles keep Godot's default orientation.
- Modules driven by speed or data interfaces: Scale Mesh Size By Speed, Color By Speed, Color From Curve and Dynamic Material Parameters.
- Sprite material logic beyond its texture: a material shows one texture (a flipbook's, else its colour's), tinted by the particle colour; dynamic parameters, other textures and material functions are listed in the build report. A material that only refracts (heat haze) draws nothing, so its emitter is left out. Mesh renderers use the mesh's own materials; material overrides on the renderer are ignored.
- Ribbons joining an emitter's own particles (by Ribbon ID or link order) rather than trailing another emitter's are left out.
Converted approximately¶
Each case is listed in the build report.
- Inputs: an input linked to a parameter other than a user parameter, or made by a dynamic input other than a random range or a curve, keeps the module's default.
- Drag: Godot's damping slows particles by a fixed amount a second rather than in proportion to their speed, so it is set for them to travel about as far. Aerodynamic drag becomes plain drag.
- Velocity:
- Velocity from a point sends particles off in random directions.
- A random velocity box becomes a cone through its corners.
- A cone with a hollow middle, or with speed falling off from its axis, becomes a plain cone.
- Vortex Force: it is equally strong at any height above or below the emitter. Influence falloff is ignored, and its pull towards the origin is only roughly matched. An axis that isn't along the emitter's gravity becomes gravity's direction. An emitter with several vortex forces circles by the first.
- Curl Noise Force: the noise pattern differs from Unreal's, and particles that don't move aren't moved by it, as Godot's turbulence only turns moving particles.
- Colour and size:
- Random colours start at the range's first colour.
- Random saturation and value don't vary; only hue does.
- Uneven (non-uniform) sizes and size curves use the average.
- Sprites of varying shape all get the average shape.
- A rotation rate scaled over life turns at a steady rate.
- Emission shapes: a plane becomes a flat box. Box-surface and plane-edge locations fill the whole box. Cylinder, ring and disc locations become Godot's ring shape. Shapes Godot lacks (such as torus) start particles at the emitter.
- Spawning:
- Emitters set to loop a number of times loop for ever.
- Bursts after the emitter starts fire as it starts.
- A burst combined with a spawn rate is spread over the emitter's cycle.
- Renderers: mesh facing modes other than velocity are ignored.
- Ribbons: a trail has the colour of the particle it follows along its whole length, and every particle of the emitter it follows draws one.
- Beams are shown all the time, keep their colour and stay where they start; tangents are ignored.
- Lights: one light stands for all of an emitter's particle lights.
- Events: events sent by chance or after a delay are sent by every particle from the start; a location event without a rate spawns as at 60 fps.
- Collision with the scene uses a height field, so particles only hit what is below them. Emitters that collide become GPUParticles3D.
- Wind Force: particles speed up along the wind rather than settling at its speed.
An emitter that would spawn or draw nothing is left out. A system with nothing convertible becomes a placeholder.
Cascade particles¶
Cascade, Unreal's older particle system, is converted the same way: one prefab scene per system at its Unreal path, instanced by each Particle System component in the level. UE2GD reads Cascade systems through Unreal's Cascade To Niagara Converter plugin, which it turns on. If that plugin is off, each Cascade system becomes a placeholder and the build report says so.
Each emitter's first LOD level is used. Cascade's module problems are listed in the build report under Cascade ...,
the same way as Niagara's.
What carries over¶
Spawn rate and bursts, lifetime, size and size over life, colour and colour over life, initial velocity (including cones), constant acceleration (as gravity), drag, location (box, sphere and cylinder), sprite and mesh rotation and rotation rate, warmup time and fixed bounds.
- Sprite emitters become camera-facing quads with their sprite material converted, as Niagara sprites are. The Required module's sub images and the SubUV module's Sub Image Index curve play the flipbook, linear-blended when its interpolation blends; random interpolation gives each particle a random frame. SubUV Movie plays its frame rate, looping.
- Mesh emitters use the exported mesh. Mesh emitters aligned to velocity face where they fly.
- Collision (the Collision and GPU Collision modules) works as Niagara's does: particles bounce with the module's resilience (or damping factor) and friction, stop, or die where they hit. The emitter simulates on the GPU, and a height field collider over its reach stands for the scene.
- Ribbon emitters trailing another emitter's particles (a Trail Source module set to Particle) become Godot particle trails, as Niagara's do: a same-seed copy of the emitter they follow draws a RibbonTrailMesh as wide as the ribbon's size, in the ribbon's material, its trail as long as the ribbon's particles live. The emitter they follow simulates on the GPU, as only GPU particles draw trails.
- Velocity Over Lifetime scales each particle's start velocity over its life, through Godot's directional velocity curve. GPU only, so the emitter simulates on the GPU.
- Emitters playing a number of times (Emitter Loops above 0) spawn as many particles as all their loops do, in one shot, squeezed into the loops' share of a particle's life (an explosion's 0.1 s burst stays a burst).
- Light modules become one OmniLight3D at the emitter, in the particles' colour times the module's colour scale, reaching as far as one particle's light (its size times Radius Scale, at most 20 m). Godot's energy is a tenth of Cascade's brightness, at most 8. Emitters set to draw only lights keep their light.
Not converted yet¶
- Orbit and mesh material overrides.
- Sprite material logic beyond its texture, as for Niagara above.
- Emitter origin, rotation and start delay: particles start at the component, at once.
- Beam and anim trail emitters, and emitters set to draw nothing (unless a ribbon trails them), are left out.
- Ribbons with no Trail Source, or trailing an actor, trail their own emitter: they draw only as their actor moves, which nothing does in an exported level, so they are left out.
- Any other module, listed in the build report as
Cascade module <name>.
Converted approximately¶
- Random colours, accelerations and sizes over life take the middle of their range.
- Collision hits what is below the particles, through the height field, rather than the scene itself. Collision killing particles after several hits lets them bounce until they die of age; one freezing them keeps them bouncing.
- A light, its colour and brightness curves at their middle, shines all the time for its emitter's particles.
- A random velocity box becomes a cone through its corners. Radial velocity is ignored.
- Location in part of a sphere or cylinder fills the whole shape. With its Velocity on, particles fly out over the part's sides (a cone around them), at the radius times Velocity Scale, unless the emitter has another velocity. With several location modules, particles start in the last one's shape. An offset location keeps its offset on GPU emitters only.
- Meshes only turn about their up axis, and uneven mesh sizes use the average.
- An emitter's loops play as one: as many particles over the loops' time, once. An emitter playing once for longer than its particles live spawns for one particle life. Bursts after the emitter starts fire as it starts.
- A ribbon's trail has its start colour along all its length; colour over its life doesn't fade it to its tail.
- Velocity Over Lifetime on a random start velocity changes each particle's speed by the range's mean, one way or the other at random; a random Velocity Over Lifetime takes its middle.
- An emitter without a Size module has 1 cm sprites; one without a lifetime lives 1 second.
Credits¶
The Niagara reader and converter is adapted from SlashEngine, licensed under the Apache License 2.0. See Licence and trademarks.