MyNameIsNate

Hey I'm trying to find where the visibility information is stored on a slot in the skeleton object. And attachments on the slot object don't seem to change whether they get toggled on or off? Its likely something I'm missing so any advice would be much appreciated, thanks.
MyNameIsNate
Сообщения: 5

Nate

Look at Slot attachment.
Аватара пользователя
Nate

Nate
Сообщения: 7015

MyNameIsNate

I did look at slots. Attachments ether seem to be attached 100% of the time or not attached at all throughout the update process even when they are toggled on the timeline. I'm I'm sure I must be missing something but I thought I would post here in case anyone else may have experienced the same issue?
MyNameIsNate
Сообщения: 5

Nate

MyNameIsNate писал(а):Attachments ether seem to be attached 100% of the time or not attached at all throughout the update process
Seem how? What are you checking/looking at? What update process? Do you mean rendering? Rendering is done by getting the attachment for each slot and rendering it. There's not much magic going on. Attachments are stateless and don't know about what slots they are in.
Аватара пользователя
Nate

Nate
Сообщения: 7015

MyNameIsNate

I'm looking at the attachments on the slot objects in the skeleton object when state.update() and skeeton.updateWorldTransform() has been called. Slot object has attachment property. I was assuming this would be set to an attachment when its toggled on on timeline and set to null if toggled off.

If this is not the case can you please tell me how to check for attachments being toggled/visible on a slot please at any point during its state being updated?
MyNameIsNate
Сообщения: 5

Nate

As I said, Slot attachment has the attachment drawn for that slot. It will be null if there is no attachment for the slot. If you don't see it being null after applying an animation which has a key to hide the attachment for that slot, then something else is going on (you are looking at the wrong skeleton, you are applying the wrong animation, the animation doesn't have a key or the key is at a later time, etc). There's many ways to debug it. You can look at AttachmentTimeline and see if it is applying a keyed value.
Аватара пользователя
Nate

Nate
Сообщения: 7015

MyNameIsNate

Honestly I think there may be a bug in the javascript runtime. The attachments are keyed on the slots but the slots are not showing any changes to attachments during time where key should trigger. I'm no expert by any means so I could be missing something.
MyNameIsNate
Сообщения: 5

badlogic

Could you post a reproduction sample that shows the issue?
Аватара пользователя
badlogic

Mario
Сообщения: 715

MyNameIsNate

Hey I think the issue may be with toggling just skin placeholders? Slot objects don't seem to update attachment property when toggled on timeline. Actually I don't think attackement property is ever anything but null on slot object if the attachment is a placeholder? Is this something you may be able to confirm? Thanks
MyNameIsNate
Сообщения: 5


Вернуться в Runtimes
cron