{
  "id": "unity/urp-post-processing-volume-invalid",
  "signature": "InvalidOperationException: Post Processing Volume has no profile assigned. Please assign a valid VolumeProfile.",
  "signature_zh": "InvalidOperationException：后处理体积没有分配配置文件。请分配一个有效的 VolumeProfile。",
  "regex": "InvalidOperationException: Post Processing Volume has no profile assigned",
  "domain": "unity",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "A Post Processing Volume component exists on a GameObject but its Profile field is null or missing a reference to a VolumeProfile asset.",
  "root_cause_type": "generic",
  "root_cause_zh": "游戏对象上存在后处理体积组件，但其 Profile 字段为 null 或缺少对 VolumeProfile 资源的引用。",
  "versions": [
    {
      "version": "URP 12.1.7",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "URP 14.0.8",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "URP 16.0.1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Toggling the component doesn't assign a profile; the field remains null.",
      "fail_rate": 0.98,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "A new Volume also has no profile by default; you must manually assign or create one.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Setting to null or None is exactly the problem; you need a valid VolumeProfile reference.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "In the Inspector, drag a VolumeProfile asset (e.g., created via Assets > Create > Volume Profile) into the 'Profile' field of the Volume component.",
      "success_rate": 0.95,
      "how": "In the Inspector, drag a VolumeProfile asset (e.g., created via Assets > Create > Volume Profile) into the 'Profile' field of the Volume component.",
      "condition": "",
      "sources": []
    },
    {
      "action": "In code: `volume.profile = Resources.Load<VolumeProfile>(\"MyVolumeProfile\");` or `volume.profile = ScriptableObject.CreateInstance<VolumeProfile>();`",
      "success_rate": 0.9,
      "how": "In code: `volume.profile = Resources.Load<VolumeProfile>(\"MyVolumeProfile\");` or `volume.profile = ScriptableObject.CreateInstance<VolumeProfile>();`",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "In the Inspector, drag a VolumeProfile asset (e.g., created via Assets > Create > Volume Profile) into the 'Profile' field of the Volume component.",
    "In code: `volume.profile = Resources.Load<VolumeProfile>(\"MyVolumeProfile\");` or `volume.profile = ScriptableObject.CreateInstance<VolumeProfile>();`"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@14.0/manual/VolumeOverrides.html",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.83,
  "fix_success_rate": 0.93,
  "resolvable": "true",
  "first_seen": "2024-03-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}