From f2b04e8865b617ff844dbbe3a8e0cee230d455d4 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Fri, 11 Dec 2020 01:35:46 +0100 Subject: [PATCH] Document that changing the particle amount resets emission See #16352. --- doc/classes/CPUParticles.xml | 5 +++-- doc/classes/CPUParticles2D.xml | 5 +++-- doc/classes/Particles.xml | 6 ++++-- doc/classes/Particles2D.xml | 5 +++-- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/doc/classes/CPUParticles.xml b/doc/classes/CPUParticles.xml index 6c80faeee47..7e514b95d48 100644 --- a/doc/classes/CPUParticles.xml +++ b/doc/classes/CPUParticles.xml @@ -109,7 +109,8 @@ - Number of particles emitted in one emission cycle. + The number of particles emitted in one emission cycle (corresponding to the [member lifetime]). + [b]Note:[/b] Changing [member amount] will reset the particle emission, therefore removing all particles that were already emitted before changing [member amount]. Initial rotation applied to each particle, in degrees. @@ -229,7 +230,7 @@ Initial velocity randomness ratio. - Amount of time each particle will exist. + The amount of time each particle will exist (in seconds). Particle lifetime randomness ratio. diff --git a/doc/classes/CPUParticles2D.xml b/doc/classes/CPUParticles2D.xml index 422d79f18c4..1e13391702b 100644 --- a/doc/classes/CPUParticles2D.xml +++ b/doc/classes/CPUParticles2D.xml @@ -110,7 +110,8 @@ - Number of particles emitted in one emission cycle. + The number of particles emitted in one emission cycle (corresponding to the [member lifetime]). + [b]Note:[/b] Changing [member amount] will reset the particle emission, therefore removing all particles that were already emitted before changing [member amount]. Initial rotation applied to each particle, in degrees. @@ -221,7 +222,7 @@ Initial velocity randomness ratio. - Amount of time each particle will exist. + The amount of time each particle will exist (in seconds). Particle lifetime randomness ratio. diff --git a/doc/classes/Particles.xml b/doc/classes/Particles.xml index 2edb7bce42a..c3e697f65fe 100644 --- a/doc/classes/Particles.xml +++ b/doc/classes/Particles.xml @@ -49,7 +49,9 @@ - Number of particles to emit. + The number of particles emitted in one emission cycle (corresponding to the [member lifetime]). + [b]Note:[/b] Changing [member amount] will reset the particle emission, therefore removing all particles that were already emitted before changing [member amount]. + Particle draw order. Uses [enum DrawOrder] values. @@ -82,7 +84,7 @@ If [code]true[/code], results in fractional delta calculation which has a smoother particles display effect. - Amount of time each particle will exist. + The amount of time each particle will exist (in seconds). If [code]true[/code], particles use the parent node's coordinate space. If [code]false[/code], they use global coordinates. diff --git a/doc/classes/Particles2D.xml b/doc/classes/Particles2D.xml index d5d43781ed7..17dca449fb5 100644 --- a/doc/classes/Particles2D.xml +++ b/doc/classes/Particles2D.xml @@ -29,7 +29,8 @@ - Number of particles emitted in one emission cycle. + The number of particles emitted in one emission cycle (corresponding to the [member lifetime]). + [b]Note:[/b] Changing [member amount] will reset the particle emission, therefore removing all particles that were already emitted before changing [member amount]. Particle draw order. Uses [enum DrawOrder] values. @@ -47,7 +48,7 @@ If [code]true[/code], results in fractional delta calculation which has a smoother particles display effect. - Amount of time each particle will exist. + The amount of time each particle will exist (in seconds). If [code]true[/code], particles use the parent node's coordinate space. If [code]false[/code], they use global coordinates.