1. What the “trying to save a Prefab with a missing script” error means
Unity has a serialized component slot whose script can no longer be resolved. The script may have been deleted, renamed, moved to an unavailable assembly, lost with a package, or broken by a migration. The prefab can still render normally even while that missing component blocks a clean save.
2. Find the exact GameObject with the missing component
Open the prefab in Prefab Mode and expand the hierarchy. Select objects until the Inspector shows a component labeled Missing (Mono Script) or a missing script reference. If the prefab is large, use a repeatable project scan instead of manually clicking every child.
3. Restore the script or deliberately remove the dead component
If the component represents gameplay, tooling or a third-party package you still need, restore the script/package or repair the reference. Remove the missing component only when you have confirmed that the old behaviour is no longer required.
4. Check nested prefabs and variants before saving again
A clean root object does not guarantee a clean prefab. Missing components can live inside nested prefabs or variants, so inspect the hierarchy all the way down and test the variants that actually ship.
5. Do not auto-delete unknown components across the project
A bulk cleanup can silently remove behaviour you meant to recover. Treat automatic detection as a reporting step first; review each affected prefab before making destructive edits.
6. Make the result reviewable
For team handoff, a CSV or written report is more useful than a one-time console dump. Record the prefab path, affected object and resolution so the same missing reference does not return later.
Free toolScan for missing scripts without modifying the project
The free Unity Asset Preflight Auditor reports missing MonoBehaviour references together with other common model, texture and prefab QA findings, then exports the result to CSV.
Open the free Unity Asset Preflight Auditor →
Paid fallback only if neededNeed the findings prioritized?
$25 fixed scope: send the exported CSV or focused screenshots for a human-readable Unity Asset QA Report Review. The review groups severity, likely false positives and fix order; it does not modify your project.
Request $25 QA review →
Related resources
Unity asset QA checklist →
AI-assisted Unity QA checklist →
Unity Game Dev Resources →