docs.unity3d.com
    Show / Hide Table of Contents

    Skeleton Sharing

    This sample demonstrates how Skeleton sharing can be set up and leverages on the other samples before this. Note that the following requires the PSD Importer installed. Open the 5 Skeleton Sharing.unity Scene to see this sample in action.

    This sample's setup is similar to the one in the Full Skin Swap sample. The visual Assets are located in Assets/Samples/2D Animation/[X.Y.Z]/Samples/5 SpriteSwap/Sprites:

    • Knight.psb
    • Wolf.psb

    The Wolf.psb uses the .skeleton Asset from the Knight.psb, which means that the Wolf.psb is prepared using the same skeleton structure as the Knight.psb.

    The Wolf actor also uses the following Sprite Library Assets located in Assets/Samples/2D Animation/[X.Y.Z]/Samples/5 SpriteSwap/Sprites:

    • Knight.spriteLib
    • Wolf.spriteLib

    The Knight.spriteLib is assigned to the Main Library property for the Wolf.spriteLib is. The Wolf.spriteLib has been setup so that the torso Category is not overridden, which allows it to use the Sprite from Knight.spriteLib.


    The Wolf actor uses the same torso Sprite as the Knight actor.

    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