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
GameObject
into 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
Prefabs
or unpackedGameObjects
to fix, fromScene
or Project folders. - If you select an instantiated
Prefab
fromScene
, its sourcePrefab Asset
will also be fixed. If you don't want this, unpack thePrefab Instance
fromScene
. - 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 Asset
is repaired, thisMonoBehaviours
should get fixed too. - Lost Sources: missing scripts with no IDs or data, which are not linked to any
Prefab Asset
, so are completely unrecoverable.