Search Issue Tracker
By Design
Votes
0
Found in
2019.4
2019.4.0f1
2020.1
2020.2
Issue ID
1263203
Regression
No
[Asset Bundles] Bundles are not cached when using certain request URLs
Reproduction steps:
1. Open the attached project ("case_1263203-CRC-Not_Working.zip")
2. Open the repro scene ("SampleScene")
3. Enter Play Mode
4. Click on "Download Bundle". button
5. Click on "GetCachedVersions ...", and observe that bundles get cached
6. Exit Play Mode
7. Select MainCamera GameObject
8. Check "Use Customer URL" checkbox on "CRC Test 2" component
9. Repeat steps 3-5
Expected result: Bundle gets cached
Actual result: Bundle is not cached
Reproducible with: 2019.4.4f1, 2020.1.0b16, 2020.2.0a18
Couldn't test with below 2019.2.0a6 (serialization errors when loading bundles)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
- Lighting generation freezes the Editor during the Global Illumination Post Processing stage when baking lighting on certain systems
Resolution Note:
For this case
To have Caching.GetCachedVersions(bundleName, hashes); works correctly with a specify bundle name, the user should use "public static Networking.UnityWebRequest GetAssetBundle(string uri, CachedAssetBundle cachedAssetBundle, uint crc);" when getting the bundle. With the CachedAssetBundle parameter, a name can be defined by the user.