# AllocateMeshIndexAttribute()

> Ensures that the meshIndices particle attribute array is allocated.

## Definition

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

```csharp
public void AllocateMeshIndexAttribute()
```

### Remarks

This is important if you want to use this attribute in a job, such as [IJobParticleSystem](/engine/6000.0/script-reference/unityengine/particlesystemjobs/ijobparticlesystem.md).
