---
title: "Smooth flipbook frames with Flip-Book Blending in Unity"
description: "Blend flipbook frames smoothly in Unity: turn on Flip-Book Blending in a URP particle material and add the UV2 and AnimBlend custom vertex streams."
canonical: https://appliedmanifold.com/guides/unity-flipbook-blending/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [Guides](https://appliedmanifold.com/guides/)
3.  Flipbook blending in Unity

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.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [See the examples →](https://appliedmanifold.com/docs/pyrofx/examples/)

-   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](/bakes/smoke_plume/poster.webp)

Smoke plume, 7.0 x 10.8 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-smoke_plume)

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.

04 // RELATED

## Related pages

-   [Sub UV blending Unreal EngineCross-fade Niagara flipbook frames with Sub UV blending, and see what motion vectors and mip settings add.](https://appliedmanifold.com/guides/unreal-subuv-blending/)
-   [Blend flipbook framesBlend flipbook frames with a crossfade or with motion vectors, and where Unity, Unreal, Godot 4 and three.js support each.](https://appliedmanifold.com/guides/blend-flipbook-frames/)
-   [Texture Sheet Animation UnityConfigure the Unity Particle System Texture Sheet Animation module for an 8 x 8 flipbook, by hand or with a short C# script.](https://appliedmanifold.com/guides/unity-texture-sheet-animation/)
-   [Unity smoke UnitySmoke that loops as a leaning plume or rises once after a blast, played in Unity by hand today.](https://appliedmanifold.com/effects/unity-smoke/)
-   [Unity VFX UnityFire, smoke, explosion and dust effects in Unity: sprite sheets you set up by hand.](https://appliedmanifold.com/effects/unity-vfx/)
-   [Flipbook motion vectorsMotion vectors record how each pixel moves between flipbook frames, so a shader can blend frames smoothly without ghosting.](https://appliedmanifold.com/learn/flipbook-motion-vectors/)
-   [OutputsWith the default export, each view writes four sheets, `<view>_pos.png`, `_neg.png`, `_colour.png` and `_aux.png`, plus `layout.json`, two still previews, the animated `preview_anim.png` and `bake_report.json`. Sheets are 8 x 8 tiles of 256 px by default.](https://appliedmanifold.com/docs/pyrofx/outputs/)

[All pages in Guides →](https://appliedmanifold.com/guides/)

[← Lit smoke in Unity](https://appliedmanifold.com/guides/unity-smoke-lighting/)[Import a sprite sheet in UE5 →](https://appliedmanifold.com/guides/unreal-import-sprite-sheet/)

05 // FAQ

## Unity flipbook blending questions

[All questions →](https://appliedmanifold.com/faq/)

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

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [Outputs →](https://appliedmanifold.com/docs/pyrofx/outputs/)

[All effects, guides and explainers →](https://appliedmanifold.com/effects/)
