- Home /
The question is answered, right answer was accepted
Sprites missing due to faulty metadata?
We have a character in our game, created with Unity's 2D animation packages. When I open the project, all sprites on the SpriteRenderer are missing (causing the char to be invisible):
When I check our version control (we use GIT), I can see that the metadata of the .psb-file that the prefab depends on has changed. Specifically, it has changed every object's fileIDToRecycleName and also appears to be pointing to a completely different sprite alltogether:
Solutions I've attempted:
Discarding/deleting the metafile. This does nothing, Unity just changes it again.
Reimporting the asset changes nothing.
Getting a fresh clone of the repo.
Launching the project in different versions of Unity.
Does anyone have a solution for this issue?
Answer by ChefBaas · Feb 18, 2020 at 09:45 AM
It seems an update to Unity's 2D PSD importer from 1.0.0-preview.3 to 1.0.0-preview.4 caused the issue in this case:
Fix Prefab asset using wrong name. Note this will break Prefab references if upgrading from previous versions.
Downgrading back to 1.0.0-preview.3 solved the issue. I also found another changelog with the same issue if upgrading to 1.1.0-preview.1
I had the same issue, but thankfully opening the PSB file and saving rebuilt the metadata and the images came back in my game.