{
  "id": "unity/tilemap-collider-invalid-bounds",
  "signature": "ArgumentException: TilemapCollider2D: Invalid bounds. The tilemap bounds are empty.",
  "signature_zh": "参数异常：TilemapCollider2D：无效的边界。瓦片地图边界为空。",
  "regex": "ArgumentException: TilemapCollider2D: Invalid bounds\\. The tilemap bounds are empty\\.",
  "domain": "unity",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "A TilemapCollider2D component is added to a Tilemap that has no tiles placed, causing the collider to compute empty bounds.",
  "root_cause_type": "generic",
  "root_cause_zh": "TilemapCollider2D 组件添加到了没有放置任何瓦片的瓦片地图上，导致碰撞体计算出空边界。",
  "versions": [
    {
      "version": "Unity 2022.3.5f1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Unity 2023.2.0b2",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Disabling and re-enabling the collider does not fix the empty bounds; the collider still has no tiles to compute from.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Setting the Tilemap's cell size to zero or negative values may cause other errors but not resolve the empty bounds.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Add at least one tile to the Tilemap using the Tile Palette or script: `tilemap.SetTile(new Vector3Int(0, 0, 0), yourTile);`.",
      "success_rate": 0.95,
      "how": "Add at least one tile to the Tilemap using the Tile Palette or script: `tilemap.SetTile(new Vector3Int(0, 0, 0), yourTile);`.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Remove the TilemapCollider2D component if the tilemap is meant to be empty, or use a CompositeCollider2D with a separate collider setup.",
      "success_rate": 0.9,
      "how": "Remove the TilemapCollider2D component if the tilemap is meant to be empty, or use a CompositeCollider2D with a separate collider setup.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "使用瓦片调色板或脚本在瓦片地图上至少放置一个瓦片：`tilemap.SetTile(new Vector3Int(0, 0, 0), yourTile);`。",
    "如果瓦片地图应为空，则移除 TilemapCollider2D 组件，或使用 CompositeCollider2D 配合独立的碰撞体设置。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.unity3d.com/Manual/class-TilemapCollider2D.html",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.9,
  "resolvable": "true",
  "first_seen": "2023-09-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}