Sprites disappearing in build

Hi everyone,

I’ve been experiencing a very annoying issue that has been following me through many updates since last year. Basically, when I’m compiling a build, the standalone player shows wrong sprites in some images.

This is what I have in the editor :
Now this is what I have in the build :

The sprite in the build is our UI panel sprite. This happens for many other sprites. I’ve tried the follow multiple times :

  • Removing all scenes from the build settings and adding them back
  • Reimporting all the assets
  • Reimporting the specific sprite folders
  • Moving those assets
  • Deleting their previous folder
  • Deleting all sprite atlasses

Nothing seems to do the trick, and the worst is that this seems to be quite “random”. Some builds won’t have problems and some will. I haven’t found any reproduction step yet.

I’ve only noticed that :

  • it always happens on the same specific sprites

  • the heart sprite is used as a Monobehaviour icon, but this is the only sprite for which it’s the case. Also, I have many other sprites used for Monobehaviours icons and they don’t have any problems

  • the problematic sprites seem to “stutter” and briefly show other sprites

Please, help me not lose my sanity :smile:

Build platform? Editor version?

Did you check the Editor.log for any build output issues, and the Player.log for any runtime errors?
Make a development build if you don’t normally do that (checkbox in build settings).

Hi, sorry about the late reply.
Building on Windows from Unity 2022.19. Started a few versions ago though, but I can’t recall when exactly.
I don’t have any errors in the player logs, and development builds don’t change anything at the moment. I’ll look at the editor logs when I get back !