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.

  • 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
Smoke plume, 7.0 x 10.8 m, compiled with Spatial Compiler. Spec →

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.

04 // FAQ

Niagara Sub UV questions

All questions →

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.

All effects, guides and explainers →