Is there an easy way to see which GameObjects Prefabs belong to in the editor?
In other words, if I have a button prefab and I want to know all the higher-level objects that that button is attached to, how can I do that?
Answer by streeetwalker · Sep 22, 2020 at 06:15 PM
Right click on the prefab and choose Find References in Scene. Does that not do what you want?
Yes, but for the whole project. That only shows references in the current scene, and my project has a lot of instantiated GameObject dependencies depending on the UI state.
to my knowledge, there is nothing built-in that will do that across scenes. I think it is probably possible to write an editor script to do it.
Off the top of my head, if you look at the EditorScene$$anonymous$$anager class and the PrefabUtility class, you could probably come up with a scheme to load scenes one by one and tally up the gameObject references to a prefab, and then display the results somewhere, for example, the console.