Particle Dynamic Color as Variable

Hello Guys,
I am new to Unity, and I need to know if possible to change particle color dynamically, to set the color variable, when ever color is selected in the game the particle color will change accordingly.

thank you

Yes, it is possible. You’ll need to learn to create the buttons and things that you will be using to set the color.

With that figured out, you can have a script on the ParticleSystem object that does something like this:

public class Example : MonoBehaviour
{
    private ParticleSystem particles; // variable to save a reference to the particle system component

    private void Awake()
    {
        particles = GetComponent<ParticleSystem>(); // find the particle system on this object
    }

    public void changeColor(Color color)
    {
        if(particles != null)
        {
            ParticleSystem.MainModule main = particles.main;
            main.startColor = color;
        }
    }
}

In the same way you have access to all the Modules of a particle system. Main is the topmost section of the particle system.