- Home /
Asset store tool for finding in scene references
Are there currently any tools, in the asset store or otherwise, that will allow me to determine whether or not a game object is being referenced by another game object(s) script. A few examples of what I'm looking to do:
I have a game object in my scene and I'd like to know if that game object is referenced by any other components on any game object in a scene.
I have prefabs in my project and I'd like to know if they're being referenced by a script component that is attached to scenes game objects.
Essentially, I'm looking for a reference finder, such that I can determine whether an object is being referenced by a public variable in any given component that's on another object.
Do you know of any existing tools that do something similar?
I didn't know you could right click on prefabs and find references in the scene so that takes care of number 2 but I still haven't seen any resources to solve number 1. Help?
Can you please take a look at my answer? I think Asset Usage Finder solves your problem quite well. If so, please mark it as a solution. Thanks!
Answer by Gotlight · Sep 06, 2016 at 06:16 AM
A few examples of what I'm looking to do:
1) I have a game object in my scene and I'd like to know if that game object is referenced by any other components on any game object in a scene.
2) I have prefabs in my project and I'd like to know if they're being referenced by a script component that is attached to scenes game objects.
Hi, there's a tool called Asset Usage Finder which provides both features you have mentioned, including the first one - GameObject search in Scene.
In brief:
it shows you particular fields where your asset is used
lets you easily replace it
searches for usages of assets that are using your one
Asset Store link:
NOTE: I'm one of the authors of Asset Usage Finder and I will be happy to answer your questions
Denis
UPDATE: v3.0 was released! More than 20x faster compared to 2.0 version
Hey, thanks! Just wondering why Unity didn't include such tool in Editor
Yes, it does! For more answers, please check