{
  "id": "unity/scriptableobject-serialization-ref",
  "signature": "SerializationException: Reference to ScriptableObject 'MyData' is broken or the object has been destroyed",
  "signature_zh": "SerializationException: 对ScriptableObject 'MyData'的引用已损坏或对象已被销毁",
  "regex": "SerializationException: Reference to ScriptableObject '.*' is broken or the object has been destroyed",
  "domain": "unity",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "A ScriptableObject reference in a MonoBehaviour or another ScriptableObject points to a destroyed or missing asset, often due to asset deletion, reimport, or scene unload.",
  "root_cause_type": "generic",
  "root_cause_zh": "MonoBehaviour或另一个ScriptableObject中的ScriptableObject引用指向了已销毁或缺失的资源，通常是由于资源删除、重新导入或场景卸载导致。",
  "versions": [
    {
      "version": "Unity 2021.3",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Unity 2022.3",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Unity 2023.1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Calling Resources.UnloadUnusedAssets() can destroy ScriptableObject references if they are not properly referenced, making the issue worse.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Simply saving the scene does not fix a broken reference; the actual asset must be reassigned.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "In the Inspector, locate the component with the broken reference and reassign the ScriptableObject asset from the Project window. If the asset is missing, recreate it (e.g., Assets > Create > MyData) and reassign.",
      "success_rate": 0.85,
      "how": "In the Inspector, locate the component with the broken reference and reassign the ScriptableObject asset from the Project window. If the asset is missing, recreate it (e.g., Assets > Create > MyData) and reassign.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a custom Editor script to find and fix broken references: iterate over all serialized properties in the scene and check for missing assets using AssetDatabase.TryGetGUIDAndLocalFileIdentifier.",
      "success_rate": 0.75,
      "how": "Use a custom Editor script to find and fix broken references: iterate over all serialized properties in the scene and check for missing assets using AssetDatabase.TryGetGUIDAndLocalFileIdentifier.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "In the Inspector, locate the component with the broken reference and reassign the ScriptableObject asset from the Project window. If the asset is missing, recreate it (e.g., Assets > Create > MyData) and reassign.",
    "Use a custom Editor script to find and fix broken references: iterate over all serialized properties in the scene and check for missing assets using AssetDatabase.TryGetGUIDAndLocalFileIdentifier."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.unity3d.com/ScriptReference/ScriptableObject.html",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-02-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}