Is it possible to set a Particle zone?

Godot 4.5

Hi!
I’m not speaking of the zone where you can spawn the particles; I am wondering if there is a way to “cut” a particle that exit from a zone.

Let me try to clarify: let say that I want to spawn particles inside a rectangle zone… what I want is to cutout the parts of the particles that go outside of the rectangle so that I see only a rectangle made of a particles.

In the image, there is a simple particle emitter with the yellow rectangle that is the zone… what I want is to “cut” the parts of the particles that are outside the yellow rectangle or rather make them invisible, I don’t know.

Do you think is possible?

You can definitely do it with a SubViewport, if nothing else.

1 Like

Parent the particles to a color rect or a sprite with a full rectangular texture and enable parent’s clip children flag.

Subviewport is another option although it requires a little more setup.

1 Like

If all you need is a mask, do this.