Hi,
I'm using remove_child as a form to stop a node to interac with others
The thing is that once it's previous parent gets removed by queue_free i want it to be removed as well
for now I am using addchild in _exittree
here what the code looks like:
onready var object = get_node('path')
func _ready():
remove_child(object)
func _exit_tree():
add_child(object)
I printed the object after that and seems like it is gone. But is it really gone?
If not, is there a way to remove it?
Thanks!