Remove Missing Scripts - FACS01-01/FACS_Utilities GitHub Wiki
Helps you find and remove broken MonoBehaviours from the selected GameObject and its children.
How to use
- Open its window from the menu
FACS Utils/Script/Remove Missing Scripts. - Put the root
GameObjectinto the object selector. - To get a list of missing scripts and their locations, press the Scan! button.
- To remove missing scripts, press the Run Fix! button. You don't have to perform a Scan before Run Fix, just in case.
Extra tips and notes
- You can select
Prefabsor unpackedGameObjectsto fix, fromSceneor Project folders. - If you select an instantiated
PrefabfromScene, its sourcePrefab Assetwill also be fixed. If you don't want this, unpack thePrefab InstancefromScene. - Using the Scan feature, you can find 3 types of missing
MonoBehaviours:- Missing Types: they have regular script IDs and can contain data. Instead of deleting them, they could be repaired with Fix Scripts.
- Unknowns From Prefab: missing scripts without IDs or data, from an
Instantiated Prefab. Their data can be found in itsPrefab Asset. If thePrefab Assetis repaired, thisMonoBehavioursshould get fixed too. - Lost Sources: missing scripts with no IDs or data, which are not linked to any
Prefab Asset, so are completely unrecoverable.