I’m trying to make a copy of druid object, cause real object dies in some cases, and I need “live” copy all the time. How to do it’s correctly?
gui_clone doesn’t fit, cause it isn’t node, it’s druid obj.
And as I understood,
self.obj = my_obj
doesn’t fit too, cause self.obj will save the reference.
Druid components will “die” on Druid instance druid:final or druid:remove call (on end of gui_script in the most cases or data_list component for example)
To make Druid component you should create gui nodes (call the gui.clone_tree in your case) and add on this nodes the logic (druid component via druid:new(..))
It’s will be not a copy, but to make it identical, pass the same arguments, is it good for you?