A powerful Unity Editor extension to detect and safely remove missing script references across your entire project or selected assets. Designed to clean up corrupted GameObjects and prefabs, saving hours of tedious manual work.
Every Unity developer has faced this:
You open a scene or prefab and see
(Missing Script)on multiple GameObjects.
Manually searching and fixing these broken references is time-consuming, error-prone, and frustrating, especially in large projects.
Missing Script Finder & Cleaner automates this process with:
- Comprehensive project-wide scanning
- Selective search for scenes, prefabs, or selected assets
- Safe removal workflow with undo support
- Clean, modern Editor window interface
(Missing Script)warnings due to deleted scripts or misconfigured prefabs- Hard-to-find broken references in nested GameObjects
- Risk of accidentally removing valid components
- No native Unity solution for batch fixing
A dedicated Unity Editor window that allows you to:
- Scan entire project or selected assets for missing scripts
- Visualize affected GameObjects with context
- Safely remove missing components with undo support
- Reduce project corruption and improve maintainability
- Scans all scenes, prefabs, and selected folders
- Detects missing MonoBehaviour or Script references
- Supports large projects efficiently
- Lists GameObjects with missing scripts
- Shows path in hierarchy / asset path
- Indicates scene or prefab source
- One-click Remove Component
- Undoable via Unity’s Undo system
- Prevents accidental deletion of valid components
- Select multiple GameObjects or assets from the list
- Batch remove missing scripts
- Quickly filter by scene, prefab, or hierarchy path
- Focus on problematic assets first
- Modern dockable Editor window
- Clear labels and buttons
- Minimal learning curve
- Keep projects clean from broken scripts
- Prevent runtime errors due to missing MonoBehaviours
- Faster scene and prefab iteration
- Standardize project health across team members
- Reduce merge conflicts caused by missing scripts
- Ensure prefab integrity
- Identify scripts accidentally removed during experimental workflows
- Cleanup project for testing or builds
Editor/
├── MissingScriptFinderWindow.cs
├── MissingScriptScanner.cs
├── MissingScriptCleaner.cs
├── AssetUtility.cs
└── UI/
├── ResultsListView.cs
└── Toolbar.cs
- Custom
EditorWindowwith search, filter, and results - Dockable and responsive UI
- Scans scenes, prefabs, and selected folders
- Uses
GameObject.GetComponents<MonoBehaviour>()to detect missing scripts - Optimized for large hierarchies
- Safely removes missing components
- Supports single and batch removal
- Undo-aware with
Undo.RecordObject()
- Handles prefab and scene path retrieval
- Provides consistent asset references for UI display
- Clone or download the repository
- Copy the folder into your project:
Assets/Editor/MissingScriptCleaner/
- Open Unity
- Access the tool via:
Tools → Missing Script Finder & Cleaner
- Editor-only execution, no runtime overhead
- Optimized search algorithms for large projects
- Undo system fully integrated
- Non-destructive workflow: components are removed safely
- Unity 2020 LTS and above
- Built-in Render Pipeline
- URP / HDRP compatible
- Works alongside version control systems (Git, Perforce)
Contributions are welcome:
- Performance improvements
- UI/UX enhancements
- Bug fixes and additional features
Fork the repo and submit a pull request with proper documentation.
MIT License
Free to use, modify, and distribute in both personal and commercial projects.
This tool exists because every Unity developer has cursed (Missing Script) at least once.
Its purpose:
Restore project integrity, save time, and prevent frustration.
Open an issue in the repository for any bugs, suggestions, or feature requests.
Happy developing
This tool is provided "as is" without warranty of any kind, express or implied. While every effort has been made to ensure its reliability and safety, the authors are not responsible for any damage, data loss, or unintended consequences that may result from its use.
Important Notes:
- Always backup your project before using this tool
- Test in a development environment before applying to production projects
- The script suggestion feature is experimental and may not always provide appropriate replacements
- Use the undo system (Ctrl+Z) after operations to revert changes if needed
- This tool modifies Unity project files and assets - use at your own risk
Not affiliated with Unity Technologies.