Hi,
I just get an InvalidHandle error while trying to load a SpriteAtlas asset under the simulate mode.
The version I’m using is v1.5.0, and I got the same error with v.1.4.0.
How to reproduce:
- Create a SpriteAtlas asset and change the Addressable Name (like the attached file)
- Build asset bundles.
- Set the Play Mode Script as “Simulate Groups” and enter the play mode.
- Try to load the SpriteAtlas by the simplified addressable name.
ResourceManagerException encountered in operation InvalidHandle: Unable to load asset Assets/Tests/Packs/SampleSpriteAtlas.sSamplePack from simulated bundle…
It look like BuildScriptVirtualMode treats the SpriteAtlas asset as an AssetBundle and attemps to rewrite the key with a hash code. But since the extension is not “.bundle”, it just use the original key to rewrite itself.
Assets/Tests/Packs/SampleSpriteAtlas.sSamplePack
= “Assets/Tests/Packs/SampleSpriteAtlas.spriteatlas”.Remove(startIndex) + “SamplePack”
where startIndex = length of (“Assets/Tests/Packs/SampleSpriteAtlas.spriteatlas”) - length of (“SamplePack”)