Wait for a signal to finish

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By patatra

Hello everyone,
I would like to fill a array with nodes that have been modified. To do this the node in charge of retrieving them sends a signal with an array in which the nodes are placed if they have had a modification. Is there a way to be sure that all nodes are registered before using this array?

Good Day,

:bust_in_silhouette: Reply From: rossunger

This feels like a backwards way to achieve your goals…

If it were me, I would probably use groups… when a node is modified, you call add_to_group("modified_nodes") and then when you need to get an array of modified nodes you call get_tree().get_nodes_in_group("modified_nodes")

If you’ve never checked out design patterns, this is a great resource:

Thanks you, I didn’t know at all, I’ll go and see.

patatra | 2022-12-19 11:58