0 votes

The code below works fine for displaying a duplicated resource on the screen. The problem comes when I want to clear these resources from the screen (and memory) and display a new set of resources. The old resources are still displaying on the screen along with the new resources. How can I track the duplicated resources and remove them when no longer needed? Thank you

# setting node name and placing resource on screen
temp_node = get_node(location_info.path + location_info.filename)
var my_copy = temp_node.duplicate() 
add_child(my_copy)
my_copy.visible = true
my_copy.set_position(Vector2(xpos, ypos))
my_copy.rect_scale = Vector2(asset_result[0]['scale'],asset_result[0]['scale'])
Godot version v3.5.1.stable.official [6fed1ffa3]
in Engine by (79 points)

1 Answer

0 votes

rossunger actually helped me answer this in a different post. Thank you for the help.

by (79 points)

External hard drives, such as Time Machine backups, are frequently used for backup purposes. They can also be used to move files from one computer to another. uno online

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.