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.
- Open the
Package Manager
in Unity (menuWindow
/Package Manager
). - Press the
+
button in the top left corner of the Package Manager panel and selectAdd package from git URL...
- When prompted, enter the URL https://github.com/edcasillas/unity-missing-references-finder.git
Alternatively, you can manually 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.
- Open the
Package Manager
in Unity (menuWindow
/Package Manager
). - Look for the
Missing References Finder
package in the list of installed packages and select it. - Press the
Update
button.
Alternatively, you can manually remove the version lock the Package Manager creates in Packages/manifest.json
so when it runs again it gets the newest version. 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.