i have a lot a unused assets in the folder

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By i.want.to.die

Just like the title said , i have a lot of unused assets in the folder , and this counts as orphan nodes , does this cause any issue , like a memory leak or something like that.
I also tried to delete those nodes , but it gave me an error , i dont know what to do.
I tried to use this code to add the nodes

var nodes = []
nodes.append(Node.new())
for node in nodes:
	add_child(node)

but it didn’t have an effect , i tried using a for and that slowed down the rise of the nodes , but it destroyed my fps , my project is a very simple 2d platformer

:bust_in_silhouette: Reply From: Calinou

Unused assets won’t result in an orphan node in your scene tree (unless you instance it somehow). Therefore, they won’t impact the game’s performance - they’ll only increase the game distribution’s file size.

is there a way to discover all the resources that are unused, are they just taking up space?

Maclaine Sabino | 2021-03-04 17:51