Help! Cannot import my sprite from gimp with all layers set correctly!

,

GIMP only allows for .PSD files but when I put them in Unity, it only appears as a flat image with no layers…

By renaming it to .PSB, it succesfully imports the layers but in random positions…

Any ideas?

Have you tried (in Gimp) setting each layer to match the image size?

Yeah, I remember woes like this using layered TIFF for panoramic photos. Definitely less trouble if you make sure every layer has all that empty space realized, as Kurt mentioned. Don’t worry, all those empty pixels compress quite well.

1 Like

This is a known issue and we are currently rolling out fixes for this.
The issue is that GIMP creates each layer to the size of the canvas, while most other DCC tools exporting .psd/.psbs trim the layer to the size of the content.

The fix is out in this version:

  • Unity 2023.1 - PSD Importer 9.0.0-pre.2

The fix is expected to land in the following versions:

  • Unity 2022.2 - PSD Importer 8.0.2
  • Unity 2021.3 - PSD Importer 6.0.7

You can follow the issue at this link: Unity Issue Tracker - Sprite layout is incorrect when importing a PSB file

2 Likes

The fix is now out for all affected Unity versions: