GUIDE // UNREAL ENGINE

How to randomize the start frame of flipbook particles in Niagara

Give each of your particles a random frame offset when it spawns, then set its Sub Image Index from its age times the frame rate plus that offset, wrapped to the frame count. Every particle sharing the looping flipbook then plays at the same speed but out of step with the others. Keep one-shot explosions starting on frame 0.

  • Godot 4 Available
  • Unity Manual setup
  • Unreal Engine Manual setup
  • Roblox Studio Manual setup
  • three.js Available

A draft compile is from $0.05, and new accounts start with $5 of usage.

FIREFINAL
First frame of the fire bake
Fire, 4.1 x 7.0 m, compiled with Spatial Compiler. Spec →

01 // HOW TO

Spread a row of fires out of step

  1. Give the emitter a Box Location shape the length of the row, and spawn the fires with a burst, for example Spawn Count 5.
  2. In Particle Spawn, click the plus button, choose Set new or existing parameter directly, and add a float named Particles.FrameOffset. Set its value with the Random Range Float dynamic input, from 0 to 64.
  3. In Particle Update, disable the Sub UV Animation module so it does not overwrite your frame.
  4. Add another parameter set for Particles.SubImageIndex, choose New Expression on its value and enter fmod(Particles.Age * 32 + Particles.FrameOffset, 64). The 32 is the 2 s fire's rate, 64 frames in 2 s.
  5. Keep Sub Image Size at 8 x 8 on the Sprite Renderer, and turn on Sub UV Blending Enabled if the fraction should blend frames.

02 // REAL OUTPUT

Slower loops need a slower rate

For the 4 s smoke plume, the expression uses 16 instead of 32, since its 64 frames span twice the time.

SMOKE_PLUMEFINAL
First frame of the smoke_plume bake
Smoke plume, 7.0 x 10.8 m, compiled with Spatial Compiler. Spec →

03 // WHY THIS WAY

Why an offset that wraps

Raising only the start frame of a first-to-last lookup makes that particle cover fewer frames in the same lifetime, so it plays faster than its neighbors. A wrapped offset keeps every particle on the full 64 frames at the clip's real speed, each starting at a different point.

A looping sheet has no special first frame, so any offset looks natural. On a one-shot explosion the same offset would skip the flash, so give explosions variety with new seeds instead of random frames.

05 // FAQ

Niagara random start frame questions

All questions →

README.UNREAL_RANDOM_START_FRAME
How do I randomize the starting frame for Niagara smoke particles?

Set the Sub UV Animation module to start on a random frame or switch its mode to Random across the 64 frames.

How do I randomize the starting frame for Niagara flipbook particles?

Store a random offset per particle at spawn and set Particles.SubImageIndex from age times frame rate plus that offset, wrapped with fmod.

How do I use a sprite sheet with Niagara particles?

Set the Sprite Renderer Sub Image Size to the grid and sample the texture with a Particle SubUV node, which reads the frame from Particles.SubImageIndex.

Can particle systems use multiple effects from one atlas?

Yes, each emitter points to its own cell range using Start Frame in Unity, Animation Offset in Godot or Niagara Sub UV Animation.

Compile your first effect

You pay per compile and see the price before it runs. New accounts start with $5 of usage.

All effects, guides and explainers →