unity
io_error
ai_generated
true
UnityEngine.AddressableAssets:初始化失败:无法从路径'Library/com.unity.addressables/aa/catalog.json'加载内容目录。异常:System.IO.FileNotFoundException
UnityEngine.AddressableAssets: Initialization failed: Failed to load content catalog from path 'Library/com.unity.addressables/aa/catalog.json'. Exception: System.IO.FileNotFoundException
ID: unity/addressable-catalog-load-failure
93%修复率
87%置信度
1证据数
2023-09-12首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| Unity 2022.3 | active | — | — | — |
| Addressables 1.21.0 | active | — | — | — |
| Unity 2023.1 | active | — | — | — |
根因分析
Addressables内容目录文件丢失或未构建,通常是因为Addressables构建未运行或目录被删除。
English
The Addressables content catalog file is missing or not built, often because the Addressables build was not run or the catalog was deleted.
官方文档
https://docs.unity3d.com/Packages/[email protected]/manual/InitializeAsync.html解决方案
-
通过Window > Asset Management > Addressables > Groups重建Addressables内容,然后点击'Build' > 'New Build' > 'Default Build Script'。
-
如果在构建的播放器中缺少目录,请确保在Addressables设置中启用'Build Remote Catalog',并通过'Player Preload'将目录包含在构建中。
无效尝试
常见但无效的做法:
-
90% 失败
Manually creating a catalog.json file with dummy content causes deserialization errors because the format is specific to Addressables.
-
85% 失败
Copying a catalog.json from another project does not work because it contains references to assets specific to that project's groups.