seminz

hi.

CCSkeletonAnimation seems like to not be able to add external attachment.

it seems like only use from atlas.

how can i use external attachment..

for example! how do i do if i want load "aaa.png" and change to "right hand item" on "goblin.spine"

thx...have a good day..
seminz
  • 記事: 25

seminz

i have one more question about below code

that code is Skin_getAttachment function

i wonder why need slotIndex.

it looks like attachment is dependent on slot.

thx. have a good day..
Attachment* Skin_getAttachment (const Skin* self, int slotIndex, const char* name) {
const _Entry* entry = SUB_CAST(_Internal, self) ->entries;
while (entry) {
if (entry->slotIndex == slotIndex && strcmp(entry->name, name) == 0) return entry->attachment;
entry = entry->next;
}
return 0;
}
seminz
  • 記事: 25

Nate

See this:
http://esotericsoftware.com/spine-using ... ttachments

Attachments are stored in a skin where the key is a slot index and name. This is because the same attachment may be on different slots with different offset SRTs.
アバター
Nate

Nate
  • 記事: 9730


Return to Runtimes