GUIDE // UNITY

How to blend flipbook frames smoothly in Unity

Turn on Flip-Book Blending in your URP particle material, then add the UV2 and AnimBlend custom vertex streams in the Particle System's Renderer module. Unity then cross-fades each frame into the next instead of snapping between them, which hides the steps when a flipbook plays slowly or stretches over a long particle life.

  • 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.

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

01 // HOW TO

Turn on blending

  1. Select the URP particle material (Particles/Unlit or Particles/Lit) and turn on Flip-Book Blending under Advanced Options.
  2. In the Particle System's Renderer module, check Custom Vertex Streams.
  3. Click the plus button and add UV2 and AnimBlend after UV. UV2 carries the next frame's position and AnimBlend the mix between the two.
  4. Keep Texture Sheet Animation on Grid with Tiles 8 and 8.
  5. To see the difference, set Simulation Speed in the main module to 0.25 and toggle Flip-Book Blending on and off.

02 // HOW IT WORKS

Cross-fades and motion vectors

A cross-fade draws two frames at partial opacity, which looks smooth on slow smoke. On fast flames played well below their rate, you can see two copies of a tongue of fire at once.

Motion vectors (per-pixel data on which way each part of the frame moves) let a shader slide one frame toward the next instead. Spatial Compiler writes motion into the red and green of main_aux.png, with the scale in layout.json. The URP particle shaders do not read it, so using it takes a custom shader.

03 // SEAMS

Lines between frames

Blending reads two cells for every pixel, so any bleed between neighboring cells shows up twice as often. Keep Wrap Mode on Clamp, and if faint lines appear at a distance, turn off Generate Mip Maps for that texture.

05 // FAQ

Unity flipbook blending questions

All questions →

README.UNITY_FLIPBOOK_BLENDING
How do I blend between flipbook frames smoothly in Unity?

Turn on Flip Book Blending in the URP particle material and add the UV2 and AnimBlend custom vertex streams in the Particle System Renderer module.

How do I prevent visible seams between frames in a Unity sprite sheet?

Set Wrap Mode to Clamp and turn off Generate Mip Maps if faint lines from neighboring frames appear at a distance.

How much padding should I add around each sprite sheet frame in Unity?

Two to four transparent pixels per side cover bilinear filtering. Leave more padding if mip maps stay enabled for distant effects.

Can I blend flipbook frames in Unity Shader Graph?

Yes. The Flipbook node gives the UV of one frame, so sample the texture at the current and next frames and Lerp between them.

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 →