{
  "id": "unity/urp-shader-pipeline-mismatch",
  "signature": "Shader error in 'Universal Render Pipeline/Lit': failed to open source file at line 0. The current render pipeline is not compatible with this shader.",
  "signature_zh": "着色器错误在'Universal Render Pipeline/Lit'中：无法在第0行打开源文件。当前渲染管线与此着色器不兼容。",
  "regex": "Shader error in '.*?': failed to open source file at line 0\\. The current render pipeline is not compatible with this shader\\.",
  "domain": "unity",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The material or shader is designed for URP but the project is using Built-in Render Pipeline, or vice versa.",
  "root_cause_type": "generic",
  "root_cause_zh": "材质或着色器是为URP设计的，但项目使用的是内置渲染管线，反之亦然。",
  "versions": [
    {
      "version": "Unity 2022.3",
      "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": "Built-in RP",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Simply changing the shader name in the material inspector does not update the underlying shader code; it may still reference URP-specific functions.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Deleting and re-importing the shader file does not fix the pipeline incompatibility; the shader must be rewritten for the correct pipeline.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Convert the project to URP via Window > Render Pipeline > Universal Render Pipeline > Upgrade Project Materials to URP Materials, or manually assign a URP-compatible shader like 'Universal Render Pipeline/Lit'.",
      "success_rate": 0.95,
      "how": "Convert the project to URP via Window > Render Pipeline > Universal Render Pipeline > Upgrade Project Materials to URP Materials, or manually assign a URP-compatible shader like 'Universal Render Pipeline/Lit'.",
      "condition": "",
      "sources": []
    },
    {
      "action": "If staying on Built-in RP, replace the material's shader with a Built-in equivalent like 'Standard' via the material inspector.",
      "success_rate": 0.9,
      "how": "If staying on Built-in RP, replace the material's shader with a Built-in equivalent like 'Standard' via the material inspector.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "通过Window > Render Pipeline > Universal Render Pipeline > Upgrade Project Materials to URP Materials将项目转换为URP，或手动分配URP兼容的着色器，如'Universal Render Pipeline/Lit'。",
    "如果保留在内置渲染管线上，通过材质检查器将材质的着色器替换为内置等效项，如'Standard'。"
  ],
  "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/upgrading-your-shaders.html",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.9,
  "fix_success_rate": 0.95,
  "resolvable": "true",
  "first_seen": "2023-06-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}