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
記事: 4

Nate

Look at Slot attachment.
アバター
Nate

Nate
記事: 7010

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
記事: 4

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
記事: 7010

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
記事: 4

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
記事: 7010

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
記事: 4


Return to Runtimes