Spawn emitter with different color and material?

Hello everyone,

I have an element in my scene and when the user interacts with it spawns particles. What I want to do is change it in a way so every time user interacts with it a different object (circle, triangle, square) is used as the material for this particle system. I also want to change the colors by creating an array of available colors too randomly choose from.

How can I achieve that?

[http://https://i.postimg.cc/Cxp6ZY7h/particle.gif][1]

You can’t change the material at runtime, but since you only have three different masks, you can switch between them using a dynamic parameter.

In the Niagara System, select the material in the sprite renderer. Now you can add a Dynamic Material Parameters module under Particle Spawn. Add a user parameter (float) and bind Shape to it.

Now you can control the parameter from blueprints:

If you manage to do this, changing color won’t be a problem to you. It’s the same: create a user parameter (vector or color), and bind particle color to it.

Hello and thanks for your help. I wonder if I can do this without Niagara since I’m just using a simple particle system.

Basically the same, but set the dynamic parameter in Cascade: