Strange 'Invalid Key Exception' using Addressable Asset LoadAsync
I'm trying to load a sprite from an addressable sprite atlas at runtime using an AssetReferenceAtlasedSprite reference. My code looks like this:
Regardless of whether I use asset database or simulate groups for my play mode script, I still get an Invalid Key Exception when I try and load the asset, even though I confirm that it's a valid key immediately beforehand:
This is with Addressables 1.8.5 in Unity 2020.1.3f.
Can anyone explain why this is happening?
screenshot-2.png
(9.3 kB)
screenshot-3.png
(42.3 kB)
Comment
Answer by qoqgames · Jan 20, 2021 at 01:29 PM
Same problem with 1.8.5
Please see https://forum.unity.com/threads/loading-sprites-via-assetreferenceatlasedsprite-broken-after-upgrade-to-1-8-3.873283/ for fixes
Your answer