This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

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,

Godot version V 3.5
in Engine by (87 points)

1 Answer

+1 vote

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:

by (1,346 points)

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

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.