PO/Library/PackageCache/com.unity.2d.animation@5.0.7/Documentation~/index.md

3.1 KiB
Raw Blame History

Introduction to 2D Animation

This documentation contains information on how to quickly rig and animate a 2D character in Unity with the 2D Animation package and tools. The following package versions are only supported for the following Unity versions:

  • 2D Animation package version 5.x.x - Unity 2020.2 or later

  • 2D Animation package version 4.x.x - Unity 2020.1

  • 2D Animation package version 3.x.x - Unity 2019.3

2D Animation and PSD Importer integration

You can use the 2D Animation package with the PSD Importer package to easily import your character artwork from Photoshop into Unity for animation. The PSD Importer is an Asset importer that supports the import of Adobe Photoshop .psb files into Unity and generating a Prefab made of Sprites based on the source file and its layers (see Adobes documentation on Layer basics).

The .psb file format has identical functions as the more common Adobe .psd format, with additional support for much larger image sizes. See the PSD Importer package documentation for more information about the importers features.

Adobe Photoshop PSB format

For character animation with the 2D Animation package, the PSD Importer package is required. The PSD Importer package currently only imports the Adobe Photoshop .psb format, and does not import the Adobe .psd format. The .psb format has identical functions as .psd, and is able to support larger image sizes.

Optional Performance Boost

You can improve the performance of the animated Sprites deformation at runtime by installing the Burst and Collections package from the Package Manager. This allows the 2D Animation package to use Burst compilation to speed up Unitys processing of Sprite mesh deformation.

With both packages installed, the Experimental Enable batching setting becomes available in the Sprite Skin component. As the implementation of the performance boost might contain bugs, you may switch back to the previous implementation by clearing the Enable batching option.

The package has been tested with Burst version 1.4.1 and Collections version 0.9.0-preview.6.

Sprite Skin component

When the character Prefab is brought into the Scene view, Unity automatically adds the Sprite Skin component to any Sprite that have any bone influences. This component is required for the bones deform the Sprite Meshes in the Scene view.