---
title: "Import a fire or smoke flipbook into Unity"
description: "Import a PNG flipbook into Unity: Wrap Mode Clamp, full Max Size, and Alpha Is Transparency only on an image whose alpha is opacity."
canonical: https://appliedmanifold.com/guides/unity-import-flipbook/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [Guides](https://appliedmanifold.com/guides/)
3.  Import a flipbook in Unity

GUIDE // UNITY

# How to import a fire or smoke flipbook into Unity

Drag the PNG into your Assets folder, set Wrap Mode to Clamp and set Max Size at least as large as the sheet. Turn on Alpha Is Transparency only when the alpha is opacity, as in a combined smoke image. Put it on a transparent particle material and set the grid in Texture Sheet Animation.

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

**FIREFINAL**

![First frame of the fire bake](/bakes/fire/poster.webp)

Fire, 4.1 x 7.0 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-fire)

01 // WHAT YOU IMPORT

## One RGBA texture per particle material

A Spatial Compiler compile gives you four PNG sprite sheets, each 2048 x 2048 px with 64 frames on an 8 x 8 grid. None of them is a plain color image. The smoke gets its look from lighting precomputed from six directions (six-way lighting), and the flame sits in its own channels.

Unity's particle materials read one base texture, so build one RGBA image before you import. For smoke, put the green channel of `main_pos.png` (light from above) in RGB and the alpha of `main_pos.png` in alpha. For flame, make a second image on black: the RGB of `main_colour.png` multiplied by the alpha of `main_neg.png` squared, since that alpha stores the square root of the flame brightness. The result is normalized to the clip's peak, so the flame material restores it with an HDR emission of `scales.emit_max_hdr` ([fire glow](https://appliedmanifold.com/guides/unity-fire-glow/)). You can combine the channels in an image editor, or ask your agent to compile the smoke image with `export.pack`.

02 // HOW TO

## Import the sheet in Unity

1.  Drag the combined PNG into a folder under Assets. Unity imports it as a texture.
2.  Select it and leave Texture Type on Default. For the combined smoke image, turn on Alpha Is Transparency, which keeps a dark fringe from forming where the smoke fades out. Leave it off for the raw output sheets and the flame image, because their alpha holds data such as flame brightness and the option changes the colors under transparent pixels.
3.  Set Wrap Mode to Clamp, so frames on the outer edge of the grid do not pick up pixels from the opposite side.
4.  Set Max Size to 2048 or higher. A 2048 px sheet capped at 1024 loses half its detail in every frame.
5.  If the soft edges show bands or blocks, set Compression to High Quality, then click Apply.
6.  Create a material with the URP Particles/Unlit shader, set Surface Type to Transparent with Blending Mode Alpha for the smoke image (Additive for the flame image) and drag the texture into Base Map.
7.  Assign the material in your Particle System's Renderer module, then turn on Texture Sheet Animation with Tiles X 8 and Y 8, as in [the Texture Sheet Animation guide](https://appliedmanifold.com/guides/unity-texture-sheet-animation/).

03 // REAL OUTPUT

## A fire and a smoke sheet to try

The 4 s smoke plume, chimney or wreck smoke leaning with the wind, imports the same way as the 2 s fire.

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

04 // WHY IT MATTERS

## Mip maps and neighboring frames

Unity builds smaller copies of each texture (mip maps) for objects far from the camera. On a flipbook, those copies average pixels across the border between two frames, so a distant fire can show a faint edge of the next frame. If you see that, leave a few transparent pixels around each frame or turn off Generate Mip Maps under Advanced for that one texture.

05 // RELATED

## Related pages

-   [Import a sprite sheet Godot 4Import a PNG sprite sheet into Godot 4, choose the import settings that matter for effects and cut the grid on the node.](https://appliedmanifold.com/guides/godot-import-sprite-sheet/)
-   [Import a sprite sheet in UE5 Unreal EngineImport PNG fire and smoke sprite sheets into Unreal Engine 5 with the right texture settings for a Niagara material.](https://appliedmanifold.com/guides/unreal-import-sprite-sheet/)
-   [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 fire UnityA looping fire, from a burning wreck to a fire whirl or a window fire, played in Unity by hand today.](https://appliedmanifold.com/effects/unity-fire/)
-   [Unity VFX UnityFire, smoke, explosion and dust effects in Unity: sprite sheets you set up by hand.](https://appliedmanifold.com/effects/unity-vfx/)
-   [Sprite sheetA sprite sheet packs many frames into one image, so your engine loads a single texture and plays the frames in order.](https://appliedmanifold.com/learn/sprite-sheet/)
-   [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/)

[← Varied explosions](https://appliedmanifold.com/guides/godot-varied-explosions/)[Texture Sheet Animation →](https://appliedmanifold.com/guides/unity-texture-sheet-animation/)

06 // FAQ

## Unity flipbook import questions

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

**README.UNITY\_IMPORT\_FLIPBOOK**

### How do I import a fire, smoke or explosion flipbook texture into Unity?

Drag the PNG into Assets, set Wrap Mode to Clamp and set Max Size to the sheet size, then assign it to a transparent particle material.

### How do I import a sprite sheet into Unity for particles?

Import it as a Default texture rather than a Sprite. The Particle System splits the grid through Texture Sheet Animation, so you never slice it manually.

### Why does my sprite sheet look blurry in Unity?

Max Size is usually lower than the sheet size, so Unity scales it down or compression smears detail. Raise Max Size and try High Quality compression.

### Should I use a 1024 or 2048 texture for VFX in Unity?

Use 2048 for large effects near the camera and 1024 for small or distant ones. On an 8 by 8 grid, 2048 px gives each frame 256 px.

## 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/)
