• 2D
  • How can I freeze node subtree?

Hello, while I was developing game pause I wanted to make menu over the game field. And of cource, game processing have to stop. I read about set_process function, but it doesn't stop processing of the children. It is problem for me, becouse I use child nodes as a containers. Do I need to run trought whole nodes in the subtree and call set_process(false) or is there more "elegant" solution of this problem? Just remove parent node of the subtree won't works for me, becouse removed node doesn't drawn.

Unfortunately, with how pausing in Godot works currently, there is no way to pause/freeze a subsection of the node tree. You can either freeze everything using the method described in pausing games on the documentation, or you have to implement a custom pause behavior in GDScript that mostly pauses everything (example).