Prefab Integrity System

Unity Prefabs can break in subtle ways that normal “Null Reference” checks miss. The Prefab Integrity module (MRK_PrefabIntegrity) handles these edge cases.

Detected States

1. Missing Prefab Asset (Red Prefab)

Occurs when the .prefab file on disk has been deleted, but instances remain in the scene.

  • Visual: Red text in Hierarchy.
  • Error: PrefabUtility.GetPrefabAssetType == MissingAsset.
  • Fix: The tool allows you to identify and delete these invalid instances.

2. Disconnected Instances

Occurs when a prefab instance loses its link to the source but retains data.

  • Error: PrefabInstanceStatus.Disconnected.
  • Fix: The tool flags this as a Warning. You can often Revert or Apply changes to restore the link.

Nested Prefabs

The scanner is recursive, meaning it dives into nested prefab hierarchies to find if a child prefab within a parent prefab is broken.


This site uses Just the Docs, a documentation theme for Jekyll.