Since I upgraded to Unity 6, the whole Project window is broken. It shows blank thumbnails for FBX files:
The FBX model itself can be previewed properly in Insecptor:
But the thumbnails just refuse to show up. Refresh / Reimport do nothing. How to fix this?
I assume it has something to do with Editor.RenderStaticPreview? How this method works? Does it matter that I’m using a custom SRP?
When you upgrade, and there are unexpected issues, the first thing to try is: delete the /Library and /Obj folders (project must be closed, don’t reopen until deletion is complete).
Although this is similar to “Reimport all” so if reimport individual assets doesn’t fix it chances are high a complete wipe won’t fix it either.
Try importing some of the broken assets into a blank project with the same editor version. If the issue happens there, send it in: Help => Report a bug.
Otherwise it’s in your project. Check for package updates and install them. Check if perhaps an editor asset interferes or isn’t compatible with UE6 (that’ll confuse a lot of people hehe).
What version of UE6? Be sure to use the latest patch release and if it’s not too much trouble, test your project (copy of) in 6.1 and 6.2.
Thank you for your reply.
I finally found the issue. It’s that my custom SRP checks Camera.main and if it’s null I render nothing.
The tricky thing is that the preview in inspector is rendered with Camera.main != null, while the thumbnail is rendered with Camera.main == null. I think it’s not a new behavior from Unity 6, it’s just that Unity cached some older rendered thumbnails so I didn’t notice the issue before.