---
title: "Explosion effect in Unity from a sprite sheet"
description: "Play an explosion in Unity using Texture Sheet Animation on an 8 x 8 PNG sprite sheet."
canonical: https://appliedmanifold.com/effects/unity-explosion/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [Effects](https://appliedmanifold.com/effects/)
3.  [Unity VFX](https://appliedmanifold.com/effects/unity-vfx/)
4.  Unity explosion

EFFECTS // UNITY

# How to make an explosion in Unity

In Unity, you can play an explosion that plays once, a ground fireball or a shell impact. Your agent makes PNG sprite sheets of 64 frames, and the Particle System's Texture Sheet Animation, with Tiles set to 8 by 8, plays them once.

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

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

**FIREBALLFINAL**

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

Fireball, 9.4 x 13.4 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-fireball)

01 // WHAT YOU GET

## What you get for explosion in Unity

Two explosion examples cover the common cases. The fireball bursts from the ground and rolls upward for 3.7 seconds, about 9.4 m wide and 13.4 m tall at its peak. The impact is a shell hitting dry ground: a flash, thrown earth and a little smoke in 2 seconds, about 3.5 m across.

Each compile is four 2048 px PNG sheets of 64 frames on an 8 x 8 grid, a `layout.json` with the timing, and previews. The sheets carry lighting from six directions and the flame separately, not one painted color image, so Unity needs a small material to show them.

02 // BY HAND TODAY

## Set up the explosion in Unity by hand

1.  Ask your agent for the effect (for example "a car explosion about 6 m tall that plays once") and download the output folder. Import `main_pos.png`, `main_neg.png` and `main_colour.png` with Wrap Mode set to Clamp and Alpha Is Transparency off. They are data your material reads, not finished pictures, and the alpha of `main_neg.png` holds flame brightness, which that option would treat as transparency.
2.  Make a material for a Particle System. The quick setup uses the alpha of `main_pos.png` as opacity and its green channel (light from above) as brightness, tinted with your smoke color, and adds the flame on top: `main_colour.png` times the squared alpha of `main_neg.png` times `scales.emit_max_hdr` from `layout.json`. Shader Graph's Flipbook node or a small custom shader can read the sheets.
3.  In the Texture Sheet Animation module, set Mode to Grid, Tiles X and Y to 8 and Animation to Whole Sheet.
4.  Turn Looping off, emit one particle with a Burst, set Start Lifetime to 4 s, Cycles to 1 and Stop Action to Destroy. The explosion's frames crowd its fast start, so key Frame over Time from the frame times in `layout.json` (frame index divided by 64 against time divided by 4 s), or ask for a compile with `export.pacing = "even"` and keep a linear curve from 0 to 1.
5.  Keep the particle square and set its size to the meters per tile in `layout.json`, a little over 13.4 m for the explosion, so it shows at its real scale.

03 // REAL OUTPUT

## Compare the explosion examples

**IMPACTFINAL**

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

Impact, 3.5 x 2.8 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-impact)

These clips are final-quality compiles of the shipped examples, played from their own sheets. Your agent can start from any of them.

04 // ADJUST IT

## Adjust the explosion for your scene

Use the fireball for vehicles, barrels and big set pieces, and the impact for shells, grenades and anything that hits the ground. Ask your agent for a smaller burst, more smoke after the flash, or a few seeds so repeated explosions do not look identical.

Both end once the effect has faded, so the last frame is empty and the effect can be removed without a pop.

05 // WHICH ONE

## Pick a explosion example

-   `fireball`: A fuel explosion that bursts from the ground and rolls upward. Plays once, 9.4 x 13.4 m, 3.7 s.
-   `impact`: A shell hitting dry ground: flash, thrown earth, a little smoke. Three emitters in one box. Plays once, 3.5 x 2.8 m, 2.0 s.

Each one has its own page: [Fireball](https://appliedmanifold.com/effects/unity-fireball/), [Impact](https://appliedmanifold.com/effects/unity-impact/).

06 // RELATED

## Related pages

-   [Godot explosion Godot 4An explosion that plays once, a ground fireball or a shell impact, dropped into a Godot 4 scene by your agent.](https://appliedmanifold.com/effects/godot-explosion/)
-   [Unreal explosion Unreal EngineAn explosion that plays once, a ground fireball or a shell impact, played in Unreal Engine by hand today.](https://appliedmanifold.com/effects/unreal-explosion/)
-   [Roblox explosion Roblox StudioAn explosion that plays once, a ground fireball or a shell impact, played in Roblox Studio by hand today.](https://appliedmanifold.com/effects/roblox-explosion/)
-   [three.js explosion three.jsAn explosion that plays once, a ground fireball or a shell impact, played in three.js with a documented snippet.](https://appliedmanifold.com/effects/threejs-explosion/)
-   [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 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/)
-   [Explosion sprite sheetThe fireball and impact compiles as one-shot explosion sprite sheets, layered with smoke and dust and played once in each engine.](https://appliedmanifold.com/effects/explosion-sprite-sheet/)
-   [Loop vs one-shotLooping effects repeat until stopped and one-shot effects play once and fade out, and each needs its own frames and settings.](https://appliedmanifold.com/learn/loop-vs-one-shot/)
-   [Play an explosion once UnityMake a Unity Particle System play an explosion flipbook a single time and destroy itself, with a prefab and a spawn script.](https://appliedmanifold.com/guides/unity-play-explosion-once/)
-   [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 Unity VFX →](https://appliedmanifold.com/effects/unity-vfx/)

[← Unity fire](https://appliedmanifold.com/effects/unity-fire/)[Unity smoke →](https://appliedmanifold.com/effects/unity-smoke/)

07 // FAQ

## Questions about explosion in Unity

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

**README.UNITY\_EXPLOSION**

### Is there a ready explosion effect for Unity?

Start from fireball or impact and ask your agent for a 6 m car explosion that plays once. Animate the resulting sprite sheet in Unity.

### How do I import an explosion flipbook texture into Unity?

Import the PNG sheets, set Wrap Mode to Clamp, leave Alpha Is Transparency off and set Texture Sheet Animation to an 8 by 8 grid.

### How do I randomize the starting frame of explosion particles in Unity?

Set Start Frame to Random Between Two Constants from 0 to 63 in Texture Sheet Animation. Every frame is a valid loop start.

### How do I make an explosion flame glow without lighting the smoke in Unity?

Render flame and smoke on two layers. Put main\_colour.png times squared main\_neg.png alpha on an additive unlit material with scales.emit\_max\_hdr.

### How many frames does a Unity explosion effect use?

The explosion compile uses 64 frames over a 4 s clip with more frames on the fast burst and an empty final frame.

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