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..
1. sayfa (Toplam 1 sayfa)
seminz
9.5 years ago
- seminz
- Mesajlar: 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..
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;
}
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;
}
9.5 years ago
- seminz
- Mesajlar: 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.
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.
9.5 years ago
-
Nate - Mesajlar: 12215
Mark topic unread
• 1. sayfa (Toplam 1 sayfa)
Dön Runtimes
- Tüm zamanlar UTC