Component Reference Finder is a tool that helps developers quickly locate serialized references to a Component across open scenes, Prefab Stage, and prefab assets.Component Reference Finder is a powerful extension designed to make reference tracking fast, accurate, and developer-friendly.With a single right-click on any Component, the tool scans:Open scenesPrefab StagePrefab assets in the projectand finds every serialized reference to that Component, its GameObject, or its Transform.Each result shows:Where the reference exists (Scene / Prefab Stage / Prefab Asset)The exact property pathThe owning component and GameObjectThe source script and line number (when available)The result window allows you to:Ping or select the referencing objectOpen the source script directly at the relevant lineFilter and search results instantlyCopy reference locations for debugging or code reviewThe tool is optimized for large projects with reused buffers and cached script lookups, minimizing editor allocations and keeping the Editor responsive.Technical DetailsArchitectureComponent Ref Finder is built entirely as an Editor-only tool and does not include any runtime code.All logic is executed inside the Unity Editor and is excluded from builds.The tool is organized into clear responsibilities:Reference scanning service for scenes, Prefab Stage, and prefab assetsSerialized property inspection using SerializedObject and SerializedPropertyCode navigation via MonoScript and cached source file analysisEditorWindow UI for result visualization and interactionReference DetectionThe tool detects references by scanning serialized object references, including:Direct references to the ComponentReferences to the owning GameObjectReferences to the TransformFor prefab assets, references are resolved using GlobalObjectId to ensure correct matching between:Scene instancesPrefab Stage contentsPrefab asset sourcesThis allows accurate detection even across nested prefabs and prefab variants.Performance OptimizationsThe implementation is optimized for large projects:Reuses internal buffers (List) to avoid repeated allocationsAvoids LINQ and reflection-heavy operations in hot pathsCaches source code lines per script file to prevent repeated disk readsResolves script line numbers once per run using a lightweight heuristicStops prefab scanning early once a match is found (one hit per prefab asset)Scanning work is kept synchronous but structured to minimize editor stalls during typical use.



