---
title: GetColor(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/getcolor
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/particlesystem/customdatamodule/getcolor.md
last_updated: 2026-09-14
generated_at: 2026-11-17T11:52:12.900Z
locale: en-us
---

# GetColor(ParticleSystemCustomData)

> Get a ParticleSystem.MinMaxGradient, that is being used to generate custom HDR color data.

## Definition

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

```csharp
public ParticleSystem.MinMaxGradient GetColor(ParticleSystemCustomData stream)
```

### Parameters

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

### Returns

| Type                                                                                           | Description                                                  |
| ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
| [MinMaxGradient](/engine/6000.3/script-reference/unityengine/particlesystem/minmaxgradient.md) | The color gradient being used to generate custom color data. |

### Remarks

Additional Resources: [ParticleSystem.CustomDataModule.SetColor](/engine/6000.3/script-reference/unityengine/particlesystem/customdatamodule/setcolor.md), [ParticleSystem.GetCustomParticleData](/engine/6000.3/script-reference/unityengine/particlesystem/getcustomparticledata.md).
