GUIDE // UNITY

How to set up Texture Sheet Animation for a flipbook in Unity

Turn on the Texture Sheet Animation module of your Particle System, set Mode to Grid, enter the sheet's columns and rows under Tiles, such as 8 and 8, and leave Animation on Whole Sheet. Frame over Time then steps each particle through every frame across its lifetime, or you can switch Time Mode to FPS for a fixed rate.

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

FIRE_WHIRLFINAL
First frame of the fire_whirl bake
Fire whirl, 4.4 x 7.1 m, compiled with Spatial Compiler. Spec →

01 // HOW TO

Set up the module

  1. Select the Particle System that already has your flipbook material in its Renderer module, and check Texture Sheet Animation.
  2. Set Mode to Grid. Tiles X is the number of columns and Tiles Y the number of rows, 8 and 8 for a 64 frame sheet.
  3. Leave Animation on Whole Sheet. Single Row plays one row only, for sheets that hold a different effect on each row.
  4. Pick a Time Mode. Lifetime spreads all 64 frames across Start Lifetime, while FPS plays them at a set rate. The 2 s fire whirl has 64 frames, so FPS is 32.
  5. Leave Frame over Time on its default linear curve from 0 to 1, and Cycles at 1, unless the particle should repeat the clip. The curve is normalized: 0 is the first frame and 1 the end of the sheet, over the particle's lifetime.
  6. Press Play in the Scene view and compare the motion with preview_anim.png, which shows the clip at its true speed.
FlipbookSetup.cs
using UnityEngine;

[RequireComponent(typeof(ParticleSystem))]
public class FlipbookSetup : MonoBehaviour
{
    public int columns = 8;
    public int rows = 8;
    public float framesPerSecond = 32f; // 64 frames over a 2 s loop

    void Awake()
    {
        var sheet = GetComponent<ParticleSystem>().textureSheetAnimation;
        sheet.enabled = true;
        sheet.mode = ParticleSystemAnimationMode.Grid;
        sheet.numTilesX = columns;
        sheet.numTilesY = rows;
        sheet.animation = ParticleSystemAnimationType.WholeSheet;
        sheet.timeMode = ParticleSystemAnimationTimeMode.FPS;
        sheet.fps = framesPerSecond;
    }
}

02 // HOW IT WORKS

How Unity counts the frames

Unity numbers the cells from the top-left corner, across each row and then down, so frame 0 is the top-left cell and frame 63 the bottom-right one on an 8 x 8 grid. Start Frame takes those frame numbers, while Frame over Time is normalized: 0 is the start of frame 0 and 1 the end of frame 63.

Unity reads the grid only from the numbers you type, never from the image. A sheet with 16 columns and 4 rows needs Tiles X 16 and Y 4; the same image with the wrong numbers plays cut-up frames. Spatial Compiler writes the grid, frame count and playback rate into layout.json, so you can copy them instead of guessing.

04 // FAQ

Unity Texture Sheet Animation questions

All questions →

README.UNITY_TEXTURE_SHEET_ANIMATION
How do I make Unity read a texture as a flipbook instead of a single image?

Turn on Texture Sheet Animation on the Particle System and set Tiles to the grid size. Without this module, every particle shows the entire sheet.

How do I set the rows and columns of a flipbook in Unity?

In the Particle System, open Texture Sheet Animation and set Tiles X to the number of columns and Tiles Y to the number of rows.

How do I use a 16 by 4 sprite sheet in Unity?

In the Particle System, set Tiles X to 16 and Tiles Y to 4. Keep Animation on Whole Sheet so all 64 frames play in order.

How do I control the playback speed of a flipbook in Unity?

In the Particle System, set Time Mode to FPS and enter a rate or keep it on Lifetime and adjust Start Lifetime.

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 →