Multiple of my sprite textures are missing in both editor and standalone players when using addressables. The sprites load succesfully, but their textures are empty/blank/transparent.
This is affecting sprites using in SpriteRenderers and UI Images. From debugging, I can see that the sprite loads successfully, but the texture is invalid. The textures aren’t null, but have a width and height of zero, and calls to any methods on the texture throw invalid texture errors.
The strangest thing is there doesn’t appear to be any consistency to when or how this issues occur. I have one addressable scene with 3 sprites as implicit dependencies, all are rendered in a UI Image component. 2/3 of them fail to load, but one loads fine. I tried duplicating the one that loads fine and assigning the duplicate to a UI image, and then it fails to load in the same way.
When inspecting the addressables build report, I can see that the sprites bundle size is incredibly low, especially for the size of the texture. The sprites in question are background art for UI menus, so are big enough for 4k screens.
I’ve attempted defining the textures as explicit addressable assets, changing platform texture settings, and moving or renaming them to no avail. Loading them explicitly via an AssetReferenceSprite also makes no difference.
Screenshot shows the addressable report. As shown, “Splash Eye.png” is 8mb, but “Splash Eye 1.png”, which is a duplicate of the same texture, is only 71.21kb
None of these textures use a SpriteAtlas. There are no texture packing tags. They do not have secondary textures.
I’m using 2022.3.17f1 LTS, and I’ve tried using Addressables 1.21.19 and 1.21.15, and I’ve tried with ScriptableBuildPipeline 1.21.21 and 1.21.9. I have had to use a modified version of 1.21.21 to bypass the current build time regression on scenes containing sprites. I’ve attempted cleaning cache, and manually deleting previous build artefacts and running a clean build. The issue persists.
Could I possibly have something misconfigured, or is this a bug? Are there any known issues this could be related to, or will I need to attempt to produce a sample project to replicate the issue?
edit: after trialling some different scene configurations, now I can’t get any of the sprite’s textures to be included in the bundle. Fun!