Skeleton sharing
You can share .skeleton Assets between different imported Assets by assigning the .skeleton Asset from one to the other's Main Skeleton property. This feature can be used together with the 2D Animation package to edit the bones of the .skeleton Assets in the 2D Animation package's Skinning Editor.
To demonstrate how to skeleton sharing, refer to the following example of two actors (characters or other Assets imported for animation with the 2D Animation package) that were imported into Unity with the PSD Importer called 'Primary' and 'Variant'. The goal is to share the .skeleton Asset of 'Primary' with 'Variant'.
Primary | Variant |
The 2D Animation package is required to create and edit the bones of the .skeleton Assets of imported Assets. In this example, the bones of 'Primary' are created and rigged in 2D Animation's Skinning Editor (refer to the 2D Animation package documentation for further information).
A bone hierarchy connected together to form the skeleton of 'Primary'.
When importing an Asset without anything set in the Main Skeleton property, the PSD Importer generates a .skeleton Asset for the Asset and automatically names it as '[Asset File Name] Skeleton'. Any bones rigged for 'Primary' is saved to the .skeleton Asset 'Primary Skeleton'.
To share the 'Primary Skeleton' with 'Variant', select 'Variant' and go to its PSD Importer settings. Assign 'Primary Skeleton' to the Main Skeleton property to have 'Variant' reference that .skeleton Asset as its own bone hierarchy.
The Bone tools are greyed out and unavailable when opening 'Variant' in the Skinning Editor.
When an actor references another actor's .skeleton Asset instead of its own, the Bone Tools in the Skinning Editor are disabled. To edit the bones, open the original actor (that the .skeleton Asset belongs to) in the Skinning Editor and edit the bones. Any changes to the original .skeleton Asset is reflected in any actor which references it. In this example, changes made to 'Primary Skeleton' are reflected in the 'Variant' actor's bone hierarchy .