---
title: GetVectorComponentCount(ParticleSystemCustomData)
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/customdatamodule/getvectorcomponentcount
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/particlesystem/customdatamodule/getvectorcomponentcount.md
last_updated: 2026-09-14
generated_at: 2026-11-11T04:37:42.341Z
locale: en-us
---

# 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.3/script-reference/unityengine.md)
* **Assembly:** UnityEngine.ParticleSystemModule

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

### Parameters

**** (\[ParticleSystemCustomData]\(/engine/6000.3/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.3/script-reference/unityengine/particlesystem/customdatamodule/setvectorcomponentcount.md), [ParticleSystem.GetCustomParticleData](/engine/6000.3/script-reference/unityengine/particlesystem/getcustomparticledata.md).
