Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | alexzheng | |
Old Version | Published before Godot 3 was released. |
For nodes in the following situations
1, create a node A in code and do not added to the scene tree, just hold a reference to it
2,define node A in the scene file, but removed from parent after instanced, just hold a reference to it
When the scene that contains node A exit tree, node A maybe is added to scene tree or may be not.
If node A is added to the scene, it will free automatically, however, if it’s not added to the scene tree, will it required to free it manually?