- Home /
What is the problem with my imported sprite?
Hi everyone,
I have a problem of which I cannot find the answers. Probably using the wrong search terms...
Anyway, the problem is that I have a sprite that looks good on my computer but blocky(?) on my build. My guess is that it is some sort of compression problem, but I have yet to find the solution for this.
On the left, the image from the build which is followed by the image right out of the editor and how it is supposed to look. The build is a screenshot from an iPhone Xr
Has anyone experienced this and/or know the answer to this problem? I've also had this problem on a lightmap, which I ended up discarding...
Thanks!
Answer by TheShadyColombian · Oct 26, 2019 at 08:35 PM
If you select your sprite in the project view, the inspector should show you import settings for that sprite. Near the bottom, there's things like compression and also resizing. Typically, if either dimension of your sprite isn't a perfect square (8, 16, 32, 64, 128, 256, 512, 1024, etc) unity will resize your sprite. I'm not 100% sure this is the problem though. I suggest you do a build where you throw in a mesh or something that you know will render perfectly, and if that is also being pixelated, then it might be more likely to be something related to platform-specific quality settings like aliasing artifacts (which I believe are under Edit>Project Settings>Quality)
Hi, Thanks for your comment. As you suggested, I have looked in the project settings under Quality, but sadly, I do not see anything that could interfere with the compression. The image is in fact 256x256 pixels, so I do not know what can be going wrong. Anyway, thanks for you comment one again :)
I'm sorry that didn't work :( I hope you can solve your problem
Answer by Kristifor_p · Oct 26, 2019 at 09:45 PM
Hmm i had some similar problems before. So i totally understand you this can be very annoying.
My solution was i had created my game art using photoshop and then export it in PNG. After that when i have imported in unity i had changed format to 32bit in unity inspector and then save it.
Let me know if this works for you :)