# GetColor(ParticleSystemCustomData)

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

## Definition

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

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

### Parameters

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

### Returns

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

### Remarks

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