Preparing And Importing Artwork
It is recommended to arrange and separate the individual parts of your character onto different Layers, as shown in Example 1, when designing your character for animation. Save your artwork as a .PSB file, then import it into your Unity project with the PSD Importer. The Importer automatically arranges the individual characters parts (prepared as Layers) into a Sprite Sheet layout, as shown in Example 2.
When importing the graphic data from each Photoshop Layer, the Importer does the following:
- Arranges/Mosaics the Layers into a Sprite Sheet style layout.
- Generates a Sprite from each Layer’s graphic data.
Example 1: Layered character artwork in Adobe Photoshop.
Example 2: The layers mosaic into a Sprite Sheet, with a generated Prefab of the character in source pose.
Importer Settings
Prepare your character by separating the character's limbs and other parts into separate Photoshop Layers, and arrange them in your character’s default pose.
- Save your artwork as a PSB file in Adobe Photoshop by selecting the Large Document Format under the Save As menu. You can convert an existing PSD file to PSB in the same way.
- Import the PSB file into Unity as an Asset.
- Select the Asset to bring up the PSD Importer Inspector window.
In the Inspector window, ensure these settings are set (see the example below):
Set Texture Type to 'Sprite(2D and UI)'.
Set Sprite Mode to 'Multiple'.
Check Mosaic Layer.
Check Character Rig.
Check Use Layer Grouping.
Click Apply to apply the settings when ready. Refer to the PSD Importer package documentation for more information about these settings.