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.
- 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 // 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). 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
- Drag the combined PNG into a folder under Assets. Unity imports it as a texture.
- 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.
- Set Wrap Mode to Clamp, so frames on the outer edge of the grid do not pick up pixels from the opposite side.
- Set Max Size to 2048 or higher. A 2048 px sheet capped at 1024 loses half its detail in every frame.
- If the soft edges show bands or blocks, set Compression to High Quality, then click Apply.
- 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.
- 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.
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.
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.
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.