Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Swapping the Sprites in Anima 2d Meshes

Discussion in '2D' started by dlees9191, Sep 30, 2020.

  1. dlees9191


    Feb 2, 2014

    I have a character defined in an atlas PNG. I have the sprite in multiple mode to separate out the body pieces and sprite meshes setup to point to each individual body part.

    I created another atlas PNG that is basically a palette swap of the character - i.e. same body outline different textures. Is there a way for me to copy all the sprite meshes and point them to this new PNG, but keep all the mesh/bones the same? I'd like to do this programmatically because there will be several characters that need this done.

    My end goal is to be able to swap out the entire character with his palette-swapped version at runtime, and I think I'll be able to do that if I can just get these sprite meshes made.

    I tried just duplicating the folder with my atlas and sprite meshes in it, but the sprite meshes still point to the original PNG.

    Thanks for the help!