How to change the number of particles during execution?

I’m creating a vfx that is split into 100 partitions at some point with 10 partitions moving.

So the timeline gradually increased the number of particles, but the number of particles didn’t increase as expected.

Is there a way to increase the number of particles while running without regenerating vfx?

Hi @pym4742 ,
Do you mean the Capacity (set in the Initialize context) or the spawn rate (set in the Spawner context)? Capacity is immutable, so if you expect to have anywhere from 1 to 1,000 particles for example, you will need to set it to 1,000 as you can’t change that number outside of the graph.

If there is sufficient capacity, however, then you can expose a value to control how many particles you are spawning at runtime without having to recompile the graph:

Hope this helps!

7137356--853484--upload_2021-5-13_16-13-5.png