Jump to content

[Spine] Best way to change a region attachment


TheTrope
 Share

Recommended Posts

Hi,

 

I'm trying to change a texture region attachment on a spine model. For example, change the haircut of a character.

What is the best way to change a region attachment?

 

I've tried to get the head slot (slot = Sp.skeleton.findSlot("head") )and use setAttchement on this slot, but i was only able to set an existing attachment (like put an arm instead of the haircuts).

Anyway, if i change the TexturePacker texture, its not working because the texture dont fit with the spine project due to the non-existing images in the spine project.

 

So i suppose that I need to create another texture with PackerTexture including all the possibles haircuts.

But i wasn't able to change the texture of an attachment

 

If you have any ideas, it wil help me

Thanks :)

 

Link to comment
Share on other sites

  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...