[Released] PSD Layer Exporter

Export layers and layers combination from any PSD file right in the Unity project.


Online Documentation | Purchase on Asset Store

Features list:

  • Full Unity Editor Integration
  • Ability to export PSD layer as PNG files
  • Ability to export PSD layers combinations as PNG Files
  • PNG files auto update when PSD file updated

Here is use description:
Import any PSD file to any folder of your Unity project. The example PSD files with we going to use for this tutorial can be found at:

Assets/Extensions/PSDExporter/Example/PSDFileExample/body_test.psd

Right Click on PSD file, and select from the context menu.

This is the importer window with will allow you to setup import setting for the selected PSD file.

Left column will show you the content of the selected PSD file. With the Right column you can setup the export PSD layers and combination of layers to PNG files.

In the example file we have simple stickman. All parts of stickman body is represented as PSD layer. Let’s set up export for:

  • Head
  • Head with arms
  • Body with arms and legs
  • Whole stickman

To do this let’s create 4 images in the right exporter menu. And add correspondent layer to the image.
Note: For adding layers simply check layers in the left side when the export image settings is active.
Here is what should we get as result in the exporter window.

If we will to specify exported files location it will be saved to the same folder where we have our PSD file. Remember that location is relative. So let’s specify pngs_exported folder as location for our PNG exported files.

After hitting the Run button all images will be created. And you can notice that data file is created near the PSD file. Do not remove it, this file holds exporter setting.

Now we can apply any Unity import settings to our images. To simplify demonstration lets just use Sprite image type and simply drag images on the scene.

Note: If you will open itial PSD file and change it, as soon as you will save changes and open Unity all exported images will be updated.

Enjoy! :slight_smile:

PSD Layer Exporter v 1.1 just released.
1774324--112517--skitch.png

Fixes:

  • Minor fixes

It does not work in Unity 5.3.5f1
It errors out on run

Array index is out of range.
UnityEngine.Debug:Log(Object)
PSDSpliter:saveLayersEnabled() (at Assets/Extensions/PSDExporter/Editor/PSDSpliter.cs:532)

FYI, hope you can fix it.