mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Merge pull request #81559 from matorin57/3.x-backport-finished-singal-GPU-particles
[3.x] Backport "Add `finished` signal to GPUParticles"
This commit is contained in:
@@ -105,6 +105,14 @@
|
||||
[b]Note:[/b] If the [ParticlesMaterial] in use is configured to cast shadows, you may want to enlarge this AABB to ensure the shadow is updated when particles are off-screen.
|
||||
</member>
|
||||
</members>
|
||||
<signals>
|
||||
<signal name="finished">
|
||||
<description>
|
||||
Emitted when all active particles have finished processing. When [member one_shot] is disabled, particles will process continuously, so this is never emitted.
|
||||
[b]Note:[/b] Due to the particles being computed on the GPU there might be a delay before the signal gets emitted.
|
||||
</description>
|
||||
</signal>
|
||||
</signals>
|
||||
<constants>
|
||||
<constant name="DRAW_ORDER_INDEX" value="0" enum="DrawOrder">
|
||||
Particles are drawn in the order emitted.
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
<return type="Rect2" />
|
||||
<description>
|
||||
Returns a rectangle containing the positions of all existing particles.
|
||||
[b]Note:[/b] When using threaded rendering this method synchronizes the rendering thread. Calling it often may have a negative impact on performance.
|
||||
</description>
|
||||
</method>
|
||||
<method name="restart">
|
||||
@@ -83,6 +84,14 @@
|
||||
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.
|
||||
</member>
|
||||
</members>
|
||||
<signals>
|
||||
<signal name="finished">
|
||||
<description>
|
||||
Emitted when all active particles have finished processing. When [member one_shot] is disabled, particles will process continuously, so this is never emitted.
|
||||
[b]Note:[/b] Due to the particles being computed on the GPU there might be a delay before the signal gets emitted.
|
||||
</description>
|
||||
</signal>
|
||||
</signals>
|
||||
<constants>
|
||||
<constant name="DRAW_ORDER_INDEX" value="0" enum="DrawOrder">
|
||||
Particles are drawn in the order emitted.
|
||||
|
||||
Reference in New Issue
Block a user