- Home /
Color goes all weird after i import an image
Imported an image to unity as a sprite for a 2D game.
image is 32 x 32 pixel color go![alt text][1]es all weird
how do i fix this or properly import
thanks in advance!
http://answers.unity3d.com/storage/temp/39879-distort.png http://answers.unity3d.com/storage/temp/39881-rocket.png
Neither of those images have anything I'd call weird.
I've tried all the solutions above still not working.
Can't believe importing a pixel image is that complicated in unity.
Was pretty easy in gamemaker but I want to develop in unity because I want to learn c# while I make games.
It's not complicated, just turn off texture compression as in Yemachu's answer. (Ideally use truecolor rather than 16 bits, for 100% accurate color, although this will use more memory.)
Answer by Mr. Mud · Jan 31, 2015 at 10:10 PM
Have you tried changing the "Format" of the image? At the bottom of the import settings, you can select the max size of the image and in which format it should be saved.
I assume it states "Compressed"; try changing it to "16 bits", then click "Apply". This should fix the problem. The downside to this solution is that the texture will take up more memory than it would otherwise... but due to the size of the image this should not pose a problem. (Truecolor should give the same result, though it will use even more memory).
Hope this helps solve your issue.
Thanks for the help! RGB 16 Bit fixed the issue instantly! :)
Answer by Sharflesnarf · Oct 25, 2017 at 01:48 AM
with the newer updates (5 and up) you could just set the compression quality to "high" or "none" and this solves the problem.
You can't use any compression, "high quality" or otherwise. Lossy compression introduces artifacts, which isn't acceptable if the goal is 100% accurate pixel colors.
high quality compression still caused my sprite to have some some pixel artifacts/errors. I agree that should set to none to completely remove these artifacts.
Answer by Batuhan13 · Jul 03, 2019 at 05:40 AM
Change compression method (At bottom of import settings) to "None" this solved my problem I hope you can fix it =).
Answer by saadali211 · Mar 20, 2017 at 02:19 PM
i have color problem and here is how i fixed it https://youtu.be/eFlZBPc2NG0
Answer by Krajciks · Feb 26, 2021 at 05:54 PM
Have you tried changing the Format of the image? At the bottom of the import settings, you can select the max size of the image and in which format it should be saved. I assume it states Compressed; try changing it to 16 bits, then click Apply.
Your answer
Follow this Question
Related Questions
How do I change the import settings when using sprite.create with a WWW.texture from a png image. 1 Answer
How to set default sprite import settings? 1 Answer
Issue with PixelPerfectCamera script and sprite masks (see images)... How to fix? 1 Answer
Sprite object has unwanted offset to the grid 0 Answers
What's the best art pipeline for 2D animated sprites? 1 Answer