> For the complete documentation index, see [llms.txt](https://heroicsolo.gitbook.io/heroic-engine/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://heroicsolo.gitbook.io/heroic-engine/basics/useful-components/colorized-particles.md).

# Colorized Particles

Presented by ColorizedParticles class, this component allows to change particle system color both in runtime and Edit mode by changing one parameter in inspector or calling one method from code. Instead of annoying manipulations with MinMaxGradient, ColorOverLifetimeModule and MainModule, you can switch particles color much faster via this component!

<figure><img src="https://1131436974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9rEHd0nHFvWCSkMEfAjl%2Fuploads%2FX1npVtiXhhLqFqN0RJLX%2Fimage.png?alt=media&amp;token=bbb6bc09-e1fd-4d13-ae62-cf54f5111f82" alt=""><figcaption><p>Colorized particles</p></figcaption></figure>

{% hint style="info" %}
You can find example Smoke VFX prefab with attached ColorizedParticles component in Heroic Engine/Example/Prefabs/VFX directory.
{% endhint %}

***

### How to use it

Just attach ColorizedParticles component onto your gameobject with ParticleSystem.

***

### Parameters in inspector

<figure><img src="https://1131436974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9rEHd0nHFvWCSkMEfAjl%2Fuploads%2FNge0jw6KQGDDVc15bBbO%2Fimage.png?alt=media&amp;token=d09aa12b-9c89-4f01-b24b-14324d6819f8" alt=""><figcaption><p>Parameters in inspector</p></figcaption></figure>

**Color** – needed color of particles.

***

### Available methods

```csharp
public void SetColor(Color newColor)
```

*This method sets needed particles color. It changes both Start color of Main Module and Lifetime gradient color.*
