Unity creates a fadeover between colors when importing pictures.

I have created a simple image consisting of rectangles of different colors which is supposed to represent a map to another given image to signify different areas of the latter. As such it is important that I can easily distinguish which unique colors exists in the image and where they are.

When I import this image to Unity and check for colors however it appears that Unity has created a sort of fadeover between the colors which creates a higher amount of unique colors than the original picture which confuses my algorithm.

Does anyone know what might cause this?

I think the issue is probably your filter mode. You should set it to point and see if that takes care of your problem.

alt text