# ParticleSystem.TextureSheetAnimationModule

> Script interface for the TextureSheetAnimationModule.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.ParticleSystemModule

```csharp
public struct ParticleSystem.TextureSheetAnimationModule
```

## Remarks

This module allows you to add animations to your particle textures. To author an animation, you must use a flipbook Texture.

![ParticleFlipbook (ParticleSystem.TextureSheetAnimationModule)](/api/media?file=/engine/6000.0/media/images/ParticleFlipbook.png)

*A flipbook texture sheet that contains eight sub-images of the numbers 1-8 across two rows of four columns. The first row contains the numbers 1-4 and the second row contains the numbers 5-8.*

Each numbered region represents a frame of the animation, which you must distribute evenly across the Texture. Select a variable below to see script examples. You may want to use this Texture on your Particle System with each example, to see how the module works.

Additional Resources: [ParticleSystem](/engine/6000.0/script-reference/unityengine/particlesystem.md), [ParticleSystem.textureSheetAnimation](/engine/6000.0/script-reference/unityengine/particlesystem/texturesheetanimation.md).

## Properties

| Property                                                                                                                                     | Description                                                                                                                                                                                                                                                           |
| -------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [animation](/engine/6000.0/script-reference/unityengine/particlesystem/texturesheetanimationmodule/animation.md)                             | Specifies the animation type.                                                                                                                                                                                                                                         |
| [cycleCount](/engine/6000.0/script-reference/unityengine/particlesystem/texturesheetanimationmodule/cyclecount.md)                           | Specifies how many times the animation loops during the lifetime of the particle.                                                                                                                                                                                     |
| [enabled](/engine/6000.0/script-reference/unityengine/particlesystem/texturesheetanimationmodule/enabled.md)                                 | Specifies whether the TextureSheetAnimationModule is enabled or disabled.                                                                                                                                                                                             |
| [fps](/engine/6000.0/script-reference/unityengine/particlesystem/texturesheetanimationmodule/fps.md)                                         | Control how quickly the animation plays.                                                                                                                                                                                                                              |
| [frameOverTime](/engine/6000.0/script-reference/unityengine/particlesystem/texturesheetanimationmodule/frameovertime.md)                     | A curve to control which frame of the Texture sheet animation to play.                                                                                                                                                                                                |
| [frameOverTimeMultiplier](/engine/6000.0/script-reference/unityengine/particlesystem/texturesheetanimationmodule/frameovertimemultiplier.md) | The frame over time mutiplier.                                                                                                                                                                                                                                        |
| [mode](/engine/6000.0/script-reference/unityengine/particlesystem/texturesheetanimationmodule/mode.md)                                       | Select whether the animated Texture information comes from a grid of frames on a single Texture, or from a list of Sprite objects.                                                                                                                                    |
| [numTilesX](/engine/6000.0/script-reference/unityengine/particlesystem/texturesheetanimationmodule/numtilesx.md)                             | Defines the tiling of the Texture in the x-axis.                                                                                                                                                                                                                      |
| [numTilesY](/engine/6000.0/script-reference/unityengine/particlesystem/texturesheetanimationmodule/numtilesy.md)                             | Defines the tiling of the texture in the y-axis.                                                                                                                                                                                                                      |
| [rowIndex](/engine/6000.0/script-reference/unityengine/particlesystem/texturesheetanimationmodule/rowindex.md)                               | Explicitly select which row of the Texture sheet to use. The system uses this property when [ParticleSystem.TextureSheetAnimationModule.rowMode](/engine/6000.0/script-reference/unityengine/particlesystem/texturesheetanimationmodule/rowmode.md) is set to Custom. |
| [rowMode](/engine/6000.0/script-reference/unityengine/particlesystem/texturesheetanimationmodule/rowmode.md)                                 | Select how particles choose which row of a Texture Sheet Animation to use.                                                                                                                                                                                            |
| [speedRange](/engine/6000.0/script-reference/unityengine/particlesystem/texturesheetanimationmodule/speedrange.md)                           | Specify how particle speeds are mapped to the animation frames.                                                                                                                                                                                                       |
| [spriteCount](/engine/6000.0/script-reference/unityengine/particlesystem/texturesheetanimationmodule/spritecount.md)                         | The total number of sprites.                                                                                                                                                                                                                                          |
| [startFrame](/engine/6000.0/script-reference/unityengine/particlesystem/texturesheetanimationmodule/startframe.md)                           | Define a random starting frame for the Texture sheet animation.                                                                                                                                                                                                       |
| [startFrameMultiplier](/engine/6000.0/script-reference/unityengine/particlesystem/texturesheetanimationmodule/startframemultiplier.md)       | The starting frame multiplier.                                                                                                                                                                                                                                        |
| [timeMode](/engine/6000.0/script-reference/unityengine/particlesystem/texturesheetanimationmodule/timemode.md)                               | Select whether the system bases the playback on mapping a curve to the lifetime of each particle, by using the particle speeds, or if playback simply uses a constant frames per second.                                                                              |
| [uvChannelMask](/engine/6000.0/script-reference/unityengine/particlesystem/texturesheetanimationmodule/uvchannelmask.md)                     | Choose which UV channels receive Texture animation.                                                                                                                                                                                                                   |

## Methods

| Method                                                                                                                 | Description                                        |
| ---------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------- |
| [AddSprite](/engine/6000.0/script-reference/unityengine/particlesystem/texturesheetanimationmodule/addsprite.md)       | Add a new Sprite.                                  |
| [GetSprite](/engine/6000.0/script-reference/unityengine/particlesystem/texturesheetanimationmodule/getsprite.md)       | Get the Sprite at the given index.                 |
| [RemoveSprite](/engine/6000.0/script-reference/unityengine/particlesystem/texturesheetanimationmodule/removesprite.md) | Remove a Sprite from the given index in the array. |
| [SetSprite](/engine/6000.0/script-reference/unityengine/particlesystem/texturesheetanimationmodule/setsprite.md)       | Set the Sprite at the given index.                 |
