- Home /
Why are there color differences between photoshop and Unity?
I'm trying to recreate something I made in photoshop through unity but it's not working.
I made the ring in photoshop, and just dragged it in. Unity automatically set the Material to "Sprites-Default" and a default RGB color value of (255,255,255), which is white. The only thing I did was make it truecolor in the sprite settings. It appears like this in Unity3D:
Great. Now I did the made the same ring in photoshop again, except this time I left it at a white (255,255,255) color in photoshop and imported it. So now the ring looks like this:
Okay, no problem, I can just use the SAME purple color value I used in photoshop for the first ring, RGB value of (100, 77, 82), and set that color value in Unity3D for the spritecolor. Except when I do that, I get this color instead of the color in the first image I linked (that was made in photoshop):
Why can't I recreate the first color that I set in photoshop in Unity3D? Is it something to do with the Sprites-Default material I'm using? Thanks
Is photoshop's color mode and color profile set correctly? (At sRGB, with document mode at RGB. Selecting colors with the RGB picker doesn't mean the document's color mode is at RGB).
I think so -- I haven't changed any settings from the default. The mode says "RGB" and in color settings everything looks normal: http://i.imgur.com/AA$$anonymous$$mpP2.png
then most probably is the shader. It has a tint value, try changing that, and try changing it to a different one.
This sort of seems to work. It took some experimentation but if I use a pinkish tint ins$$anonymous$$d of the default white one, I am able to get similar colors in Unity3D to the Photoshop-made one. This seems counter-productive, though, if I have to experiment and play around with the tint values until it is perfect (I have a lot of colors in this game).
Answer by Vendrad · Sep 25, 2018 at 01:49 PM
Ensure the following is done to have Unity / Image Profile / Photoshop visuals all aligned.
In Photoshop
Edit > Color Settings > Settings > Select: Monitor Color (This will ensure there's nothing being done with the colors on your screen)
Edit > Color Settings > Color Management Policies > Set all to Off
This should make things marry up correctly for new files.
For any old files make sure you do the following:
Edit > Assign Profile > Don't Color Manage This Document (Alternatively you can discard the profile when the file is reloaded into Photoshop, provided you have that configuration selected in Edit > Color Settings)
You'll then notice that the file in Photoshop now looks like it does when you've been importing it into Unity. You'll have to amend it to the desired colors.
Lastly when saving... Export as > png (ctrl + shift + alt + W)...
Color Space > Convert to sRGB > Selected
Color Space > Embed Color Profile > Unselected
Answer by LeonardNS · Jan 24, 2015 at 07:24 PM
The RBG color of the first ring is not 100,77,82. It's 93,63,78. I remade this scenario in my editor and I got that they were alike.
I can assure you one of them is white and the other is purple, but the white has purple as color in the unity editor. I think you just read the data wrong in photoshop or something. I used Paint.net instead of photoshop though and .png as file type.
Yep -- using 93, 63, 78 ins$$anonymous$$d of my values worked! But I'm confused. I didn't read the values wrong, I don't think:
They are indeed 100, 77, 82 (or #644d52). I guess what I need to do is make it in photoshop, save as PNG, use some tool like the ColorZilla to eye drop the color (I also got rgb(93, 62, 78) when I used the eye dropper outside of photoshop), and use those RGB values in Unity3D ins$$anonymous$$d. I wonder why there is an offset from Photoshop RGB values to Unity3D?
Answer by sandolkakos · Jul 30, 2017 at 02:19 AM
I faced a similar problem here, but the only thing I did to fix it was convert the Color Profile of my document to "Adobe RGB".
Photoshop: Edit > Convert to Profile
Your answer
![](https://koobas.hobune.stream/wayback/20220613181410im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Material doesn't have a color property '_Color' 4 Answers
Changing two different objects renderer colour 1 Answer
Change Color in C# with RGB Values? 4 Answers
Setting color information and passing it in scenes 1 Answer
Material color won't update! 2 Answers