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?
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.
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