A tool to find missing references in Unity.
Original credit to: http://www.li0rtal.com/find-missing-references-unity/
Installation must be performed by project.
Add the following line to your Packages/manifest.json file under dependencies:
"com.ecasillas.missingrefsfinder": "https://github.com/edcasillas/unity-missing-references-finder.git"
Open Unity again; the Package Manager will run and the package will be installed.
To ensure you have the latest version of the package, remove the version lock the Package Manager creates in Packages/manifest.json. The lock looks like this:
"com.ecasillas.missingrefsfinder": {
"hash": "someValue",
"revision": "HEAD"
}
Open the Tools menu and select "Find Missing References", then select the context in which you want to search:
- The current scene.
- All scenes added to the build settings.
- All assets.
- Everywhere (all scenes added to the build settings + all assets).
Click on one of these options and wait for the process to finish. Missing references will be shown as errors in the console and you can click on them to jump to the corresponding game object.
- The count of missing references shown in the dialog at the end of the process is sometimes incorrect. This doesn't affect the results shown in the console.