PNG File Looks Grayscale/Transparent in Photoshop or Windows Preview [SOLVED]

I have an asset with some PNG texture files and when I look at the textures in the Unity editor they look perfectly normal. They also work perfectly fine in the game scene and game view. However, I want to edit these files to adjust the color, but when I load into Photoshop I get a very bizarre result where most of the image is invisible and only a few parts are visible in grayscale. In Windows photo preview you can see more of the original image, but it’s still mostly transparent and mostly grayscale. Here is what the image looks like in Photoshop:

And here is an idea of what it should look like from the thumbnail view in Unity:

Does anyone have any idea what is going on and how I can edit this file? I also tried viewing in Windows Paint and it had the same issue.

1 Like

Look at the alpha channel.

Can you be more specific?

1 Like

It’s not shown/applied in Unity, but it is in other software. That commonly happens with PNG. (If you find this bizarre, you haven’t seen much yet.)

There is only a single Layer and there is no Alpha channel at all. Just RGB.

I’m glad you are trying to help, but I have no idea how to fix this so I can edit the file. Do you see some way to do that?

1 Like

I finally figured this out. I found the following text in Google and it worked:

In the Layers panel, select the layer. Choose Layer > Layer Mask > From Transparency. You see a layer mask thumbnail that is linked to the original layer. You can Shift-click on the thumbnail to disable it and make the image and its channels opaque.

5 Likes

That pretty much means there is. It’s just not shown in Unity unless you enable “alpha is transparency”.

Photoshop’s PNG handling is surprisingly poor. Get SuperPNG.
http://fnordware.com/superpng/

If PNG handling in PS is poor, wouldn’t directly saving/exporting the source PSD file (maintaining all the layers) to Unity asset folder solve it? Plus it makes life much easier.

Personally I use PSD files straight most of the time. But some people want to reduce the project file size, or are using assets made by someone else which are likely saved as PNGs these days.