GUIDE // UNITY
How to loop a fire or smoke flipbook continuously in Unity
Turn on Looping in your Particle System's main module, make each particle live for a whole number of passes through the clip, and set Texture Sheet Animation Cycles to that number, so the flipbook wraps from its last frame to its first in step. The sheet has to be made as a loop, or the wrap shows as a jump.
- 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.
01 // HOW TO
Set up a fire that keeps burning
These numbers fit the 2 s fire loop, a burning wreck or large campfire about 1.5 m across.
- In the main module, turn on Looping and Prewarm, so the fire is already burning when the scene loads. Set Duration to 20, Start Lifetime to 20 and Start Speed to 0.
- In Emission, set Rate over Time to 0 and add a Burst at Time 0 with Count 1. Turn off Shape so the particle spawns on the object itself.
- In Texture Sheet Animation, set Tiles to 8 and 8, Time Mode to Lifetime and Cycles to 10. Twenty seconds over 10 cycles is 2 s per pass, the length of the fire's loop.
- In Renderer, set Render Mode to Vertical Billboard. The sheet is filmed side-on, and a vertical billboard keeps the flames upright when the camera looks down.
- For the 4 s smoke plume, keep the 20 s lifetime and set Cycles to 5.
Every 20 s the burst spawns a fresh particle on frame 0 just as the old one ends on frame 63. The sheet's last frame leads into its first, so the hand-off does not show.
02 // REAL OUTPUT
Two loops ready for a looping emitter
The smoke plume loops every 4 s, twice as long as the fire, so it needs half the cycles for the same lifetime.
03 // WHY IT LOOPS
What makes the wrap invisible
A clip cut from the middle of a fire jumps at the wrap, because frame 63 and frame 0 show different flames. A looping compile from Spatial Compiler blends its last 12 frames into its first after the fire has settled, so frame 63 flows into frame 0 like any other pair of frames.
Cycles only works when the lifetime divides evenly by the loop length. A 21 s lifetime with 10 cycles makes each pass 2.1 s, and the fire plays slightly slow.
How do I loop a fire or smoke flipbook continuously in Unity?
Turn on Looping, give each particle a lifetime of a whole number of loops and set Cycles to that number, such as 10 cycles for 20 seconds.
Should the first and last frames of a looping flipbook match in Unity?
No, the last frame should lead into the first rather than repeat it. A duplicated frame holds for two steps at the wrap and looks like a hitch.
How do I make looping smoke with the Unity particle system?
Use one long lived particle per plume with Texture Sheet Animation set to a whole number of cycles, such as 5 cycles for a 20 second lifetime.
How many frames are needed for a looping particle effect in Unity?
Sixty four frames cover a 2 to 4 second loop at 16 to 32 frames per second, which holds up well for fire and smoke near the camera.
Compile your first effect
You pay per compile and see the price before it runs. New accounts start with $5 of usage.