Texture preview in editor show file size 0b

unity 2022.2.18

9000895--1240057--upload_2023-5-9_14-21-50.png
Urgent. Thanks for your help

Resetting the ProjectSettings folder fixes the problem

When you want to know what causes it?

It came up several times

Found the problem (I’m on Unity 2022.3.15 LTS due to console support).

In Editor > Project Settings, Disable “Load texture data on demand”.

This bug not only breaks the size of a texture in bytes reported in the editor, it also prevents some textures and all sprite atlas from being included in builds.

Thank you so much! This fixes a bug i was having that i spent whole 2 days of debugging and trying to narrow down to any asset in my scene.

In case anyone ever meets Assertion failed on expression: '!(copyData == NULL && byteSize != 0)' this is why! Unity 2022.3.22f1