unity
io_error
ai_generated
true
UnityEngine.AddressableAssets:初始化失败:无法从路径 'Library/com.unity.addressables/StreamingAssets/aa/catalog.json' 加载内容目录
UnityEngine.AddressableAssets: Initialization failed: Failed to load content catalog from path 'Library/com.unity.addressables/StreamingAssets/aa/catalog.json'
ID: unity/addressables-catalog-load-failure
87%修复率
84%置信度
1证据数
2023-07-12首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| Unity 2022.3 | active | — | — | — |
| Unity 2023.1 | active | — | — | — |
| Addressables 1.21.19 | active | — | — | — |
根因分析
Addressables 内容目录文件缺失、损坏或未针对当前平台构建,导致运行时无法加载资源。
English
The Addressables content catalog file is missing, corrupted, or not built for the current platform, preventing asset loading at runtime.
官方文档
https://docs.unity3d.com/Packages/[email protected]/manual/LoadingContentCatalogs.html解决方案
-
Rebuild the Addressables content: Open Window > Asset Management > Addressables > Groups, click 'Build > New Build > Default Build Script'. Then re-run the player build.
-
Ensure the catalog is included in the build: In Addressables settings, set 'Build Remote Catalog' to false for local builds, or verify the remote URL is reachable.
-
Manually load the catalog at runtime using `Addressables.LoadContentCatalogAsync(catalogPath)` with a fallback path.
无效尝试
常见但无效的做法:
-
70% 失败
Manually copying the catalog file from another build doesn't account for platform-specific differences in asset bundles.
-
40% 失败
Deleting the Library folder and rebuilding sometimes corrupts the catalog if the build settings are misconfigured.
-
60% 失败
Changing the catalog path in code without rebuilding the content leads to a mismatch.