---
title: "Unity Texture Sheet Animation for an 8 x 8 flipbook"
description: "Set up Unity's Texture Sheet Animation module for a flipbook: Mode Grid, Tiles 8 by 8, Whole Sheet, then play frames over lifetime or at a fixed FPS."
canonical: https://appliedmanifold.com/guides/unity-texture-sheet-animation/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [Guides](https://appliedmanifold.com/guides/)
3.  Texture Sheet Animation

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.

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

**FIRE\_WHIRLFINAL**

![First frame of the fire\_whirl bake](/bakes/fire_whirl/poster.webp)

Fire whirl, 4.4 x 7.1 m, compiled with Spatial Compiler. [Spec →](https://appliedmanifold.com/docs/pyrofx/examples/#ex-fire_whirl)

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.

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/)
-   [Niagara Sub UV setup Unreal EngineSet Sub Image Size, a Particle SubUV material and the Sub UV Animation module so a Niagara sprite plays an 8 x 8 flipbook.](https://appliedmanifold.com/guides/unreal-niagara-subuv/)
-   [Loop a flipbook in Unity UnityKeep a fire or smoke flipbook looping in a Unity Particle System by matching particle lifetime to whole cycles of the clip.](https://appliedmanifold.com/guides/unity-loop-flipbook/)
-   [Unity fire whirl UnityA fire whirl that spins flames into a 7 m column and loops every 2 seconds, played in Unity by hand today.](https://appliedmanifold.com/effects/unity-fire-whirl/)
-   [Unity VFX UnityFire, smoke, explosion and dust effects in Unity: sprite sheets you set up by hand.](https://appliedmanifold.com/effects/unity-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 flipbook in Unity](https://appliedmanifold.com/guides/unity-import-flipbook/)[Loop a flipbook in Unity →](https://appliedmanifold.com/guides/unity-loop-flipbook/)

04 // FAQ

## Unity Texture Sheet Animation questions

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

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

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