Preparing and importing artwork | 2D Animation | 4.1.1
docs.unity3d.com
    Show / Hide Table of Contents

    Preparing and importing artwork

    To animate a character with the 2D Animation package, it is recommended to separate the individual parts of your character onto different Layers in Photoshop (see Example 1). The PSD Importer imports the graphic data from each Photoshop Layer as Sprites, and automatically arranges the Sprites into both a Sprite Sheet, and a Prefab with the Sprites in the Layers’ original positions (see Example 2).


    Example 1: Layered character artwork in Adobe Photoshop.


    Example 2: The different parts/Layers of the character arranged into a Sprite Sheet.

    Photoshop file and PSD Importer settings

    It is recommended to prepare your character artwork by separating the character’s various limbs or accessories into separate layers, and arranged into its default pose.

    1. 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.
    2. Import the .psb file into Unity with the PSD Importer, which generates a Prefab containing Sprites based on the layers of the source file.
    3. Select the generated character Prefab and go to its Inspector window. In the Inspector window, ensure the following settings are set:

      • Set Texture Type to Sprite(2D and UI).

      • Set Sprite Mode to Multiple.

      • Check the Mosaic checkbox.

      • Check the Character Rig checkbox.

      • Check the Use Layer Grouping checkbox if you want to preserve any Layer Groups in the source .psb file.


        Importer window settings

    Click Apply to apply the settings. Refer to the PSD Importer documentation for more details about specific importer settings.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023