# Selecting particle colors from a predefined list

**URL:** <https://forums.unrealengine.com/t/selecting-particle-colors-from-a-predefined-list/271157>\
**Category:** FX\
**Tags:** unreal-engine\
**Created:** [January 9, 2022, 1:39pm UTC](https://forums.unrealengine.com/t/selecting-particle-colors-from-a-predefined-list/271157 "2022-01-09T13:39:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Limanima](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/limanima/32/248560_2.png) [@Limanima](https://forums.unrealengine.com/u/Limanima)\
**Post date:** [January 9, 2022, 1:39pm UTC](https://forums.unrealengine.com/t/selecting-particle-colors-from-a-predefined-list/271157/1 "2022-01-09T13:39:47Z")

</div>

Is it possible to set the particle color from a list? Suppose I want my particle colors to be red, orange, yellow or green.  
I know I can randomize the colors, but is not that what I want. I already found out that I can create an array of colors in the parameters but I can’t use that array for the Color.  
Here:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/7/87e19e75cfb93ed5848bfb99a5e698f26311a5de.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 9, 2022, 1:52pm UTC](https://forums.unrealengine.com/t/selecting-particle-colors-from-a-predefined-list/271157/2 "2022-01-09T13:52:51Z")

</div>

You can make the list in a BP array, and set the color from there, using a user variable.

---

<div class="post-metadata">

**Author:** ![Limanima](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/limanima/32/248560_2.png) [@Limanima](https://forums.unrealengine.com/u/Limanima)\
**Post date:** [January 9, 2022, 2:14pm UTC](https://forums.unrealengine.com/t/selecting-particle-colors-from-a-predefined-list/271157/3 "2022-01-09T14:14:09Z")

</div>

I already have an array or colors as a user parameter in the Emitter, but the question is how can I use that array to set the color?  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/e/2e88be9941bafb191485085b4bef9a8b010f7baa.png)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/e/be9157ec9bb556338ad1615ac160a185ce169264.png)

---

<div class="post-metadata">

**Author:** ![Limanima](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/limanima/32/248560_2.png) [@Limanima](https://forums.unrealengine.com/u/Limanima)\
**Post date:** [January 9, 2022, 2:19pm UTC](https://forums.unrealengine.com/t/selecting-particle-colors-from-a-predefined-list/271157/4 "2022-01-09T14:19:37Z")

</div>

Alright, I found out how to do it.  
I converted the Color to Vector and Float and added an array of Vectors for the colors.

![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/a/6a9395457f1f094be87fc24c6a84b2e81b27f1bb.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 9, 2022, 2:25pm UTC](https://forums.unrealengine.com/t/selecting-particle-colors-from-a-predefined-list/271157/5 "2022-01-09T14:25:15Z")

</div>

Or you can use a color parameter 🙂
