# GetVectorComponentCount(ParticleSystemCustomData)

> Query how many ParticleSystem.MinMaxCurve elements are being used to generate this stream of custom data.

## Definition

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

```csharp
public int GetVectorComponentCount(ParticleSystemCustomData stream)
```

### Parameters

**** (\[ParticleSystemCustomData]\(/engine/6000.5/script-reference/unityengine/particlesystemcustomdata)): The name of the custom data stream to retrieve the curve from.

### Returns

| Type                                                       | Description           |
| ---------------------------------------------------------- | --------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The number of curves. |

### Remarks

Additional Resources: [ParticleSystem.CustomDataModule.SetVectorComponentCount](/engine/6000.5/script-reference/unityengine/particlesystem/customdatamodule/setvectorcomponentcount.md), [ParticleSystem.GetCustomParticleData](/engine/6000.5/script-reference/unityengine/particlesystem/getcustomparticledata.md).
