PSD files lose quality

Hi, I wanted to use 2D spine system in Unity so im importing PSB files. But the color and image of PSB file seems strange compared to png file.


(left one: png file) (right one: psb file)

Do anyone know what causes it? And how can i fix it?


fyi, here is the current setting of the psb file. I have tried turning on/off generate mip maps, and alpha is transparency and different wrap mode and different filter mode. All doesn’t works…
I have also tryed a few color profile in photoshop, but doesn’t work either.

You have to use a .PSB Import prog to do that correctly. Google is your best friend…:slight_smile:

Ohh sorry, i misstyped in the question, I wanted to import psd instead of psb files…

@warthos3399 thank you for your answer though, do you have any idea on psd files too?

Was having this myself today. Solved it by turning off compression in the platform settings.

1 Like

After I opened platform settings, error occured and the setting is not shown…

NullReferenceException: Max Size: SerializedProperty is null
UnityEditor.EditorGUI.BeginPropertyInternal (UnityEngine.Rect totalPosition, UnityEngine.GUIContent label, UnityEditor.SerializedProperty property) (at <7d481861b3d34328a9633ade22dcedd6>:0)
UnityEditor.EditorGUI.BeginProperty (UnityEngine.Rect totalPosition, UnityEngine.GUIContent label, UnityEditor.SerializedProperty property) (at <7d481861b3d34328a9633ade22dcedd6>:0)
UnityEditor.Modules.DefaultTextureImportSettingsExtension.ShowImportSettings (UnityEditor.BaseTextureImportPlatformSettings editor) (at <7d481861b3d34328a9633ade22dcedd6>:0)
UnityEditor.BaseTextureImportPlatformSettings.ShowPlatformSpecificSettings (System.Collections.Generic.List`1[T] platformSettings, System.Int32 selected) (at <7d481861b3d34328a9633ade22dcedd6>:0)
UnityEditor.U2D.Common.TexturePlatformSettingsHelper.ShowPlatformSpecificSettings () (at Library/PackageCache/com.unity.2d.common@7.0.0/Editor/InternalBridge/TexturePlatformSettings/TexturePlatformSettings.cs:158)
UnityEditor.U2D.PSD.PSDImporterEditor.DoPlatformSettings () (at Library/PackageCache/com.unity.2d.psdimporter@7.0.1/Editor/PSDImporterEditor.cs:488)
UnityEditor.U2D.PSD.PSDImporterEditor.DoSettingsUI () (at Library/PackageCache/com.unity.2d.psdimporter@7.0.1/Editor/PSDImporterEditor.cs:338)
UnityEditor.U2D.PSD.PSDImporterEditor.OnInspectorGUI () (at Library/PackageCache/com.unity.2d.psdimporter@7.0.1/Editor/PSDImporterEditor.cs:287)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass62_0.b__0 () (at <795c477f4b8b45c2b2848ba27f9a227b>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Does anyone know how to change the platform setting?

Heres your answer, and ive used it a few times in the past, works great Redirecting to latest version of com.unity.2d.psdimporter

I’m quoting this because while you may indeed need the importer plugin as well to support all of the features you’re using, the “strange” colouring shown in the OP is highly likely to be compression artifacts.

Note that you can control compression per-texture in the file’s import settings, so you don’t need to turn it off at the platform level.

Yeah this is more what I meant. I just thought of this panel:
9202068--1283592--upload_2023-8-8_21-13-41.png

And my brain thought ‘platform settings’, though import settings makes more sense.

I had the same sort of case as OP. Working on pixel art textures and was getting strange colours that weren’t present in my .png files. Turning off compression solved it. Though testing it, high-quality compression was getting the same results, though with tiny 128 x 128 or so textures, I don’t think compression is a big deal.

Can you elaberate more on that? How to do it exactly?

Btw i have been using psd importor all the time, but i cant find the control on compression…

9209481--1285194--upload_2023-8-11_12-13-52.png9209481--1285197--upload_2023-8-11_12-14-7.png

In my previous comment I was referring to the platform-wide project settings. I hadn’t realised that there’s a platform section in the texture-specific settings as well (is it new?).

What’s in there?