javalibgdxspine

How do you change skins with spine? libgdx


Is there anyway to change skins programatically using the spine-libgdx runtime?

If not, is there at least a way to remove individual body parts or add them?


Solution

  • You'd change skins like this.

    Skeleton skeleton = new Skeleton(skeletonData);
    ...
    skeleton.setSkin("goblin");