---
title: "Play an explosion flipbook once in Niagara"
description: "Play an explosion flipbook once in Unreal Engine: Loop Behavior Once, one burst particle that lives for the clip, and Spawn System at Location."
canonical: https://appliedmanifold.com/guides/unreal-explosion-play-once/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [Guides](https://appliedmanifold.com/guides/)
3.  Play an explosion once

GUIDE // UNREAL ENGINE

# How to play an explosion flipbook once in Unreal Engine

Set your Niagara emitter's Loop Behavior to Once, spawn a single particle with a burst at time zero, and make its lifetime the clip's length so the Sub UV Animation module runs the frames once, first to last. Spawn the system at the hit point with Auto Destroy on, and it removes itself when the particle dies.

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

**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 // HOW TO

## Set up the fireball

1.  In Emitter State, set Loop Behavior to Once and Loop Duration to 4, the time the fireball's 64 frames span.
2.  Use Spawn Burst Instantaneous with Spawn Count 1 at time 0, and no Spawn Rate.
3.  In Initialize Particle, set Lifetime to 4 and a square Sprite Size from `metres_per_tile` in `layout.json`, times 100 for centimeters.
4.  On the Sprite Renderer, set Sub Image Size to 8 x 8. In Particle Update, set Sub UV Animation to Linear over the 64 frames for a first test.
5.  For the real timing, disable Sub UV Animation and set `Particles.SubImageIndex` with the Float from Curve dynamic input, read by normalized age, with one key per frame time from `layout.json`. The compile packs more frames into the first moments of the blast, which a straight line plays too slowly.
6.  In your Blueprint, call Spawn System at Location with the system as System Template and Auto Destroy checked, at the point where the blast happens.

02 // REAL OUTPUT

## A short one-shot for shell hits

Impact is a flash, thrown earth and a little smoke, with frames spanning 3.2 s. Use 3.2 for its Loop Duration and Lifetime.

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

03 // THE LAST FRAME

## Stop on the final frame

Linear mode and the curve both reach the last frame just as the particle dies. A one-shot compile runs until the effect has faded, so the fireball's frame 63 is nearly empty and nothing hangs in the air.

To hold a frame on a sheet that ends on a solid image, give the particle a longer lifetime and end the curve with a flat stretch at frame 63, or set `Particles.SubImageIndex` with a New Expression such as `min(Particles.Age * 16, 63)`.

04 // RELATED

## Related pages

-   [One-shot explosion Godot 4Build a GPUParticles3D explosion in Godot 4 that plays once and frees itself, by hand or from a wired fireball scene.](https://appliedmanifold.com/guides/godot-one-shot-explosion/)
-   [Play a flipbook once Roblox StudioTrigger an explosion flipbook a single time in Roblox Studio with OneShot mode, Emit and Debris cleanup.](https://appliedmanifold.com/guides/roblox-play-flipbook-once/)
-   [Emissive fire in Niagara Unreal EngineMake a flipbook fire glow in Unreal Engine with an unlit additive material that decodes flame color and brightness from two sheets.](https://appliedmanifold.com/guides/unreal-emissive-fire/)
-   [Unreal fireball Unreal EngineA fireball that bursts from the ground and rolls upward in 3.7 seconds, played in Unreal Engine by hand today.](https://appliedmanifold.com/effects/unreal-fireball/)
-   [Unreal Engine VFX Unreal EngineFire, smoke, explosion and dust effects in Unreal Engine: sprite sheets you set up by hand.](https://appliedmanifold.com/effects/unreal-vfx/)
-   [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/)
-   [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/)

[← Loop a flipbook in Niagara](https://appliedmanifold.com/guides/unreal-loop-flipbook/)[Random start frame →](https://appliedmanifold.com/guides/unreal-random-start-frame/)

05 // FAQ

## Niagara one-shot explosion questions

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

**README.UNREAL\_EXPLOSION\_PLAY\_ONCE**

### How do I play an explosion flipbook once and stop on its final frame in Unreal Engine?

Set Loop Behavior to Once and particle lifetime to the clip length. Play frames with Sub UV Animation or clamp Particles.SubImageIndex at 63 to hold.

### Why does my Unreal Engine flipbook keep playing after one pass?

The emitter is still on Loop Behavior Infinite or Spawn Rate keeps creating particles. Set Loop Behavior to Once, remove Spawn Rate and burst one particle.

### How do I add an explosion flipbook in Unreal Engine?

Import the explosion sheet, build a Niagara emitter that plays it once on one sprite and spawn it with Spawn System at Location.

### How do I make a fireball explosion in Unreal Engine?

Play a precomputed fireball sheet once on a Niagara sprite with an additive flame material and add a Light Renderer so the blast lights the ground.

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