alfredbaudisch / GodotDynamicInventorySystem

Godot's fully dynamic inventory system, UI with infinite scrolling, item categories, equipment slots, database of items, inspired by Zelda Breath of the Wild
https://bit.ly/GodotUI
Other
476 stars 36 forks source link

Orphan Nodes #7

Open alfredbaudisch opened 6 months ago

alfredbaudisch commented 6 months ago

Report received:

I found that there too much orphan nodes, both in your repository as well as in my code. Now I'm trying to get rid of them. Mostly it is UIFrame node here is the example of output :

118312928951 - Stray Node: UIInventoryItem2/UIFrame/ColorRect2 (Type: ColorRect)

118027716282 - Stray Node: UIInventoryItem/UIFrame/ColorRect2 (Type: ColorRect)

118094825159 - Stray Node: UIInventoryItem/UIFrame/TextureItemBackground (Type: TextureRect)

118128379598 - Stray Node: UIInventoryItem/UIFrame/TextureItemBackground/TextureItemSprite (Type: TextureRect)

118061270741 - Stray Node: UIInventoryItem/UIFrame/ColorRect3 (Type: ColorRect)

117994161885 - Stray Node: UIInventoryItem/UIFrame (Type: ColorRect)

118161934047 - Stray Node: UIInventoryItem/UIFrame/ColorHighlighted (Type: ColorRect)

For example on the opening your project we have 3000 orphan nodes after picking up all the objects there 30000 orphan nodes. It could be a problem in the future.