{
  "id": "unity/asset-importer-crash-dds",
  "signature": "Failed to import asset: 'Assets/Textures/terrain_dxt1.dds'. Error: Texture compression format DXT1 is not supported on this platform (WebGL)",
  "signature_zh": "无法导入资源: 'Assets/Textures/terrain_dxt1.dds'。错误: 此平台(WebGL)不支持DXT1纹理压缩格式",
  "regex": "Failed to import asset: '.*\\.dds'. Error: Texture compression format .* is not supported on this platform",
  "domain": "unity",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "The texture uses a GPU-compressed format (e.g., DXT1, BC7) that is not supported by the target build platform (e.g., WebGL, iOS), causing import failure.",
  "root_cause_type": "generic",
  "root_cause_zh": "纹理使用了目标构建平台（例如WebGL、iOS）不支持的GPU压缩格式（例如DXT1、BC7），导致导入失败。",
  "versions": [
    {
      "version": "Unity 2022.3",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Unity 2023.2",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "WebGL 2023",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "iOS 16",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Converting the .dds to .png in an external tool without changing compression settings in Unity still fails because the importer detects the original format.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Enabling 'Override for WebGL' but keeping the same DXT1 format does not help; the platform override must change the format to ASTC or ETC2.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "In the Inspector, select the texture asset, go to the 'Platform Override' section for the target platform (e.g., WebGL), and change the compression format to a supported one like ASTC (6x6) or ETC2 (RGBA). Example: For WebGL, set Format to ASTC_RGBA_6x6.",
      "success_rate": 0.95,
      "how": "In the Inspector, select the texture asset, go to the 'Platform Override' section for the target platform (e.g., WebGL), and change the compression format to a supported one like ASTC (6x6) or ETC2 (RGBA). Example: For WebGL, set Format to ASTC_RGBA_6x6.",
      "condition": "",
      "sources": []
    },
    {
      "action": "If the original .dds file is not needed, reimport the texture as a lossless format (e.g., .png or .tga) and let Unity compress it automatically for the target platform.",
      "success_rate": 0.9,
      "how": "If the original .dds file is not needed, reimport the texture as a lossless format (e.g., .png or .tga) and let Unity compress it automatically for the target platform.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "In the Inspector, select the texture asset, go to the 'Platform Override' section for the target platform (e.g., WebGL), and change the compression format to a supported one like ASTC (6x6) or ETC2 (RGBA). Example: For WebGL, set Format to ASTC_RGBA_6x6.",
    "If the original .dds file is not needed, reimport the texture as a lossless format (e.g., .png or .tga) and let Unity compress it automatically for the target platform."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.unity3d.com/Manual/class-TextureImporter.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-12-01",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}