I have a custom resource that I want to delete from memory, but no matter what I do, it seems to still exist. When I call the get_reference_count method, it gives me one more reference than I’m aware of, and no matter where I look, I can’t find where the custom resource is being referenced.
My question is if I can get a list of the things referencing this custom resource or some way to know exactly where the resource is being referenced.
Thanks in advance, and sorry if I haven’t explained myself well.
unfortunately i dont think you can get the objects that reference a resource, so either you have a memory leak, a cyclic reference of a reference that you forgot about (or a bug since you are using Godot 4.5 dev 2)
I have references to things that do reference the custom resource, but these are the same things I’m removing so that nothing remains that references the custom resource directly.