Basically how can I destroy a particle with a given condition? I’m trying to destroy particles with setting very high age in update but it seems like it not working. I also tried setting lifetime to 0 but no luck here also.
To control whether a particle is alive or dead, the Alive attribute (bool) is used. So, by setting the Alive attribute to false, you can kill the particle.
By default, the Update Context makes some implicit operations. One of them is to kill (reap) the particles if the age of the particles exceeds their lifetime.

If you select the Update Context, the inspector will show you some advanced options that allow you to enable/disable some implicit computation.
You can create a Set Alive Block and connect your condition on the Activation port of this block.
Here, if the World X-Coordinate of my particles is negative, I’m setting the Activation port of the Block that sets the Alive attribute to False, which kills the particle.
With this idea, you can use whatever condition to kill your particles. You can check for their position, some custom attribute values, their size, etc.
VFX Graph also provides some Blocks out of the Box. Priors to Unity 6 Preview, you should be able to find the Kill(AABox) or Kill(Sphere). Those blocks allow you to check if particles are inside or outside the Box/Sphere and kill them. But you can also use operators like Distance (Plane, Sphere, line) or sample SDF to get the distance between the article position and shapes to create conditions to set the Alive attribute.
Finally, I would like to add that you should be able to find the Kill Shape Block in the Unity 6 preview. This is relatively similar to the previous Kill(Box), but the different shapes have been merged into one block so that you can easily switch between them.
Furthermore, more shapes are available. you can now Kill Particles by checking their position with :
Plane/ Oriented Box/ Sphere / Cone, Tube, SDF

I hope that

I hope that this post will help you achieve what you’re looking for. Have a wonderful day.
Wow thanks a lot!

