yasirkula / UnityAssetUsageDetector

Find usages of the selected asset(s) and/or Object(s) in your Unity project, i.e. list the objects that refer to them
MIT License
1.73k stars 118 forks source link

Nested prefabs are not detected #32

Closed Guillaume-Chanko closed 1 year ago

Guillaume-Chanko commented 1 year ago

Description of the bug

Nested prefabs are not detected.

Reproduction steps

Create a prefab A. Then create another prefab B containing an instance of the prefab A. Then look for prefab A with Asset Usage Detector. Scenes containing prefab A will be found, but not prefab B itself or scenes containing prefab B.

yasirkula commented 1 year ago

I get this result on 2021.3.13:

image

I've added B to A instead of A to B but the case is the same. Clicking "B (GameObject) [Prefab object]" line highlights A prefab in Project window and if it's open in Prefab Mode, then it highlights B inside the prefab as seen in screenshot above. B was detected correctly in a Scene, as well (prefab A was added to the scene).

My settings:

image

yasirkula commented 1 year ago

Closed due to inactivity.