# GetVector(ParticleSystemCustomData, int)

> Get a ParticleSystem.MinMaxCurve, that is being used to generate custom data.

## Definition

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

```csharp
public ParticleSystem.MinMaxCurve GetVector(ParticleSystemCustomData stream, int component)
```

### Parameters

**** (\[ParticleSystemCustomData]\(/engine/6000.7/script-reference/unityengine/particlesystemcustomdata)): The name of the custom data stream to retrieve the curve from.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The component index to retrieve the curve for (0-3, mapping to the xyzw components of a Vector4 or float4).

### Returns

| Type                                                                                     | Description                                   |
| ---------------------------------------------------------------------------------------- | --------------------------------------------- |
| [MinMaxCurve](/engine/6000.7/script-reference/unityengine/particlesystem/minmaxcurve.md) | The curve being used to generate custom data. |

### Remarks

Additional Resources: [ParticleSystem.CustomDataModule.SetVector](/engine/6000.7/script-reference/unityengine/particlesystem/customdatamodule/setvector.md), [ParticleSystem.GetCustomParticleData](/engine/6000.7/script-reference/unityengine/particlesystem/getcustomparticledata.md)
