2D particle emitter.
2D particle node used to create a variety of particle systems and effects. [GPUParticles2D] features an emitter that generates some number of particles at a given rate.
Use the [code]process_material[/code] property to add a [ParticlesMaterial] to configure particle appearance and behavior. Alternatively, you can add a [ShaderMaterial] which will be applied to all particles.
$DOCS_URL/tutorials/2d/particle_systems_2d.html
https://godotengine.org/asset-library/asset/515
Returns a rectangle containing the positions of all existing particles.
Emits a single particle. Whether [code]xform[/code], [code]velocity[/code], [code]color[/code] and [code]custom[/code] are applied depends on the value of [code]flags[/code]. See [enum EmitFlags].
Restarts all the existing particles.
Number of particles emitted in one emission cycle.
Particle draw order. Uses [enum DrawOrder] values.
If [code]true[/code], particles are being emitted.
How rapidly particles in an emission cycle are emitted. If greater than [code]0[/code], there will be a gap in emissions before the next cycle begins.
The particle system's frame rate is fixed to a value. For instance, changing the value to 2 will make the particles render at 2 frames per second. Note this does not slow down the simulation of the particle system itself.
If [code]true[/code], results in fractional delta calculation which has a smoother particles display effect.
Amount of time each particle will exist.
If [code]true[/code], particles use the parent node's coordinate space. If [code]false[/code], they use global coordinates.
If [code]true[/code], only one emission cycle occurs. If set [code]true[/code] during a cycle, emission will stop at the cycle's end.
Particle system starts as if it had already run for this many seconds.
[Material] for processing particles. Can be a [ParticlesMaterial] or a [ShaderMaterial].
Emission lifetime randomness ratio.
Particle system's running speed scaling ratio. A value of [code]0[/code] can be used to pause the particles.
The [NodePath] to the [GPUParticles2D] used for sub-emissions.
Particle texture. If [code]null[/code], particles will be squares.
The [Rect2] that determines the node's region which needs to be visible on screen for the particle system to be active.
Grow the rect if particles suddenly appear/disappear when the node enters/exits the screen. The [Rect2] can be grown via code or with the [b]Particles → Generate Visibility Rect[/b] editor tool.
Particles are drawn in the order emitted.
Particles are drawn in order of remaining lifetime.
Particle starts at the specified position.
Particle starts with specified rotation and scale.
Particle starts with the specified velocity vector, which defines the emission direction and speed.
Particle starts with specified color.
Particle starts with specificed [code]CUSTOM[/code] data.