Search Issue Tracker
Fixed
Votes
0
Found in [Package]
1.18.4
Issue ID
ADDR-2011
Regression
No
[Addressables] InvalidKeyException from Addressables.LoadAssetAsync returns type of System.Exception when thrown
How to reproduce:
1. Open the attached project's Scene labeled "SampleScene"
2. Enter the Play Mode
3. Inspect the Console Window
Expected result: InvalidKeyException is handled as InvalidKeyException
Actual result: InvalidKeyException is handled as System.Exception
Reproducible with: 1.18.4 (2018.4.35f1, 2019.4.28f1, 2020.3.10f1, 2021.1.9f1, 2021.2.0a19)
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
- [Android][Vulkan] Crash on /system/lib/libandroid.so (ANativeWindow_setBuffersGeometry+4) when the Vulkan Graphics API is used
- Event handlers are preventing operations when trying to copy or paste HTML text in the WebGL Player
- [macOS] Crash on __pthread_kill when Exporting a Package while another export is in progress
- Crash on TransformAccessDestroyCallback when removing a URP Decal Projector component from a parent GameObject that had a URP Decal Projector child GameObject
- An added component is being removed form the prefab when reimporting the prefab
Resolution Note:
This fix constitutes a change in behavior, albeit to a behavior that makes more sense than the previous behavior. InvalidKeyExceptions will now have the type InvalidKeyException when passed into an Addressables ExceptionHandler. This is more intuitive, but because it wasn't like this before it could potentially break things. Fixed package available in Unity 2018.4.0f1 and versions above.