-
Notifications
You must be signed in to change notification settings - Fork 27
Remove Missing Scripts
FACS01-01 edited this page Apr 17, 2024
·
2 revisions
Helps you find and remove broken MonoBehaviours from the selected GameObject and its children.
- 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.
- 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.