# SetSprite(int, Sprite)

> Set the Sprite at the given index.

## Definition

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

```csharp
public void SetSprite(int index, Sprite sprite)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index of the Sprite being modified.**** (\[Sprite]\(/engine/6000.3/script-reference/unityengine/sprite)): The Sprite being assigned.

### Remarks

Additional Resources: [ParticleSystem.TextureSheetAnimationModule.GetSprite](/engine/6000.3/script-reference/unityengine/particlesystem/texturesheetanimationmodule/getsprite.md).
