# 无法导入资源: 'Assets/Textures/terrain_dxt1.dds'。错误: 此平台(WebGL)不支持DXT1纹理压缩格式

- **ID:** `unity/asset-importer-crash-dds`
- **领域:** unity
- **类别:** build_error
- **验证级别:** ai_generated
- **修复率:** 95%

## 根因

纹理使用了目标构建平台（例如WebGL、iOS）不支持的GPU压缩格式（例如DXT1、BC7），导致导入失败。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| Unity 2022.3 | active | — | — |
| Unity 2023.2 | active | — | — |
| WebGL 2023 | active | — | — |
| iOS 16 | active | — | — |

## 解决方案

1. ```
   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.
   ```
2. ```
   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.
   ```

## 无效尝试

- **** — Converting the .dds to .png in an external tool without changing compression settings in Unity still fails because the importer detects the original format. (40% 失败率)
- **** — Enabling 'Override for WebGL' but keeping the same DXT1 format does not help; the platform override must change the format to ASTC or ETC2. (50% 失败率)
