Show resource reference count on Godot inspector #12017
Replies: 4 comments
-
You could try deleting the file, then it'll warn you if there's other things that reference it |
Beta Was this translation helpful? Give feedback.
-
While not perfect※, from the filesystem you can use the context menu option "View Owners...", for your use case it should suffice※※. ※: It does not work for resources loaded dynamically, does not consider resources referenced from project settings (e.g. icon), and of course built-in resources do not exist in the filesystem. ※※: It works for resources that exist in the filesystem and are either preloaded or used in the inspector. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your replies, my problem mainly concerns built-in resources. I recently worked with people less familiar with Godot on a project. The concept of resources/refcount isn't easy to understand, and adding to that the lack of visual distinction in the interface quickly makes it very complicated. Beyond that, even though I'm used to this situation, there are many cases where I feel obliged to "make unique" for safety reasons, because I'm no longer sure whether the resource is a copy or not, which doesn't seem ideal. I imagine Godot doesn't keep track of all this and there's no easy solution, but it doesn't hurt to ask! |
Beta Was this translation helpful? Give feedback.
-
Thanks for the proposal! Consolidating in #904. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In Godot's inspector there is no way to know if a resource is used elsewhere (unless I missed the information?) I was wondering if it was information stored somewhere and if it would be possible to have this information displayed (or even be able to have the link to the scenes that use it).
Beta Was this translation helpful? Give feedback.
All reactions