What is the purpose of the node.add_to_group() "persistent" parameter?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By cowhand214
:warning: Old Version Published before Godot 3 was released.

Hello. I’m curious about the purpose of the “persistent” flag in the node.add_to_group() function. The documentation doesn’t seem to state its role so I’m wondering what effect it has.

Thanks.

Note: I cross-posted this from the forum as I’m not 100% sure the post I attempted to make there went through so I apologize if that’s frowned upon. If the post shows up I’ll link the two.

:bust_in_silhouette: Reply From: DimitriyPS

Here is a description of how and why to use group

It doesn’t explains what the persistent parameter means.

Zylann | 2016-10-17 12:41

Right, as Zylann said I think I understand (generally) the purpose of groups but what is the difference between adding a node to a group with the persistent parameter set to true and adding a node to a group when it is false?

cowhand214 | 2016-10-18 01:21