---
title: SetMeshIndex(int)
product: Unity Editor
version: '6000.3'
latest_version: '7000.0'
status: This page documents version 6000.3. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/6000.3/script-reference/unityengine/particlesystem/particle/setmeshindex
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/particlesystem/particle/setmeshindex.md
last_updated: 2026-09-14
generated_at: 2026-11-07T14:31:10.147Z
locale: en-us
---

# SetMeshIndex(int)

> Sets the Mesh index of the particle, used for choosing which Mesh a particle is rendered with.

## Definition

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

```csharp
public void SetMeshIndex(int index)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The Mesh index.
