# GetCustomParticleData(List<Vector4>, ParticleSystemCustomData)

> Get a stream of custom per-particle data.

## Definition

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

```csharp
public int GetCustomParticleData(List<Vector4> customData, ParticleSystemCustomData streamIndex)
```

### Parameters

**** (\[List\<Vector4>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): The array of per-particle data.**** (\[ParticleSystemCustomData]\(/engine/6000.0/script-reference/unityengine/particlesystemcustomdata)): Which stream to retrieve the data from.

### Returns

| Type                                                       | Description                            |
| ---------------------------------------------------------- | -------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The amount of valid per-particle data. |

### Remarks

Additional Resources: [ParticleSystem.SetCustomParticleData](/engine/6000.0/script-reference/unityengine/particlesystem/setcustomparticledata.md).
