---
title: "Set the Sub UV grid in a Niagara Sprite Renderer"
description: "Set up a flipbook in Niagara: Sub Image Size on the Sprite Renderer, a Particle SubUV node in the material and Sub UV Animation in Particle Update."
canonical: https://appliedmanifold.com/guides/unreal-niagara-subuv/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [Guides](https://appliedmanifold.com/guides/)
3.  Niagara Sub UV setup

GUIDE // UNREAL ENGINE

# How to set up Sub UV for a flipbook in a Niagara Sprite Renderer

Select the Sprite Renderer in your Niagara emitter, set Sub UV > Sub Image Size to the sheet's columns and rows, such as 8 by 8, and give it a material that samples the texture through a Particle SubUV node. Then add the Sub UV Animation module to Particle Update so each particle steps through the frames over its lifetime.

[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

## Wire the grid from texture to particle

1.  Create a Niagara System from the Simple Sprite Burst template, or add a Sprite Renderer to an empty emitter.
2.  Make a material with Blend Mode Translucent and Shading Model Unlit. Add a Particle SubUV node with your sheet, multiply its RGB and alpha by a Particle Color node, and connect them to Emissive Color and Opacity.
3.  In the emitter, select the Sprite Renderer, assign the material and set Sub UV > Sub Image Size to X 8 and Y 8.
4.  In Particle Update, add the Sub UV Animation module and set it to Linear, so it runs from the first frame to the last across each particle's life. Check that it counts 64 frames.
5.  In Initialize Particle, set Lifetime to the clip's length, 4 s for the smoke plume, and a square Sprite Size of `metres_per_tile` from `layout.json` times 100, since Unreal works in centimeters.

02 // HOW IT WORKS

## The number the renderer reads

The Sprite Renderer picks a cell from one particle attribute, `Particles.SubImageIndex`. Its whole part is the frame, counted from 0 at the top-left cell across each row, and its fraction is how far the particle has moved toward the next frame.

The Sub UV Animation module writes that number from the particle's age. You can write it yourself from any module when you need a custom timing, such as a random start frame or a hold on the last frame.

03 // RELATED

## Related pages

-   [Flipbook on GPUParticles3D Godot 4Set up a GPUParticles3D, ParticleProcessMaterial and Particle Billboard material so each particle in Godot 4 plays a flipbook sheet.](https://appliedmanifold.com/guides/godot-flipbook-gpuparticles3d/)
-   [Sprite sheet UV math three.jsTurn a frame number into texture offset and repeat values for a three.js sprite sheet, in JavaScript and in GLSL.](https://appliedmanifold.com/guides/threejs-sprite-sheet-uv/)
-   [Loop a flipbook in Niagara Unreal EngineLoop a fire or smoke flipbook without end in Niagara by looping the emitter at the clip length and bursting one particle per loop.](https://appliedmanifold.com/guides/unreal-loop-flipbook/)
-   [Unreal smoke plume Unreal EngineA smoke plume that leans with the wind and loops every 4 seconds, played in Unreal Engine by hand today.](https://appliedmanifold.com/effects/unreal-smoke-plume/)
-   [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/)
-   [Flipbook textureA flipbook texture packs an animation's frames into one grid image that your engine plays cell by cell on a quad.](https://appliedmanifold.com/learn/flipbook-texture/)
-   [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/)

[← Import a sprite sheet in UE5](https://appliedmanifold.com/guides/unreal-import-sprite-sheet/)[Loop a flipbook in Niagara →](https://appliedmanifold.com/guides/unreal-loop-flipbook/)

04 // FAQ

## Niagara Sub UV questions

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

**README.UNREAL\_NIAGARA\_SUBUV**

### How do I set the SubUV grid rows and columns in a Niagara Sprite Renderer?

Set Sub UV Sub Image Size on the Sprite Renderer, using X for columns and Y for rows, such as X 8 and Y 8.

### How do I configure a 16 by 4 flipbook in Niagara?

Set Sub Image Size to X 16 and Y 4 and make sure Sub UV Animation counts 64 frames. Particle SubUV reads the grid from the renderer.

### How do I make Niagara advance through a flipbook over particle lifetime?

Add the Sub UV Animation module to Particle Update in Linear mode. It maps each particle age across its lifetime onto the frames from first to last.

### How do I create a Niagara material that uses a flipbook texture?

Make a translucent or additive material, sample the sheet with a Particle SubUV node and multiply it by Particle Color before assigning it to the Sprite Renderer.

### How do I choose the texture size and frames per side for a Niagara flipbook?

Choose the frame count from the clip length and the texture size from screen coverage. An 8 by 8 grid at 2048 px gives 64 frames.

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