-
Notifications
You must be signed in to change notification settings - Fork 25
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
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.
- 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.