Skip to content

Commit 31d35d9

Browse files
committed
blocks: Add cpuparticles2d_finished
This block is useful to do an action when a one-shot particle emitter is finished emitting.
1 parent 4040727 commit 31d35d9

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[gd_resource type="Resource" load_steps=2 format=3 uid="uid://c188gpgf4rpns"]
2+
3+
[ext_resource type="Script" path="res://addons/block_code/code_generation/block_definition.gd" id="1_pmpup"]
4+
5+
[resource]
6+
script = ExtResource("1_pmpup")
7+
name = &"cpuparticles2d_finished"
8+
target_node_class = "CPUParticles2D"
9+
description = "Emitted when all active particles have finished processing."
10+
category = "Lifecycle | Spawn"
11+
type = 1
12+
variant_type = 0
13+
display_template = "when particles are finished"
14+
code_template = ""
15+
defaults = {}
16+
signal_name = "finished"
17+
scope = ""

0 commit comments

Comments
 (0)