- Edited
problem with draw order
Hello, I have an issue that's been driving me crazy for weeks.
In a couple characters I have animated, when integrated in unity, sometimes the textures swap place in the z axis. It happened heavily in a character that I started a while ago and was my first complex rig so I expected issues. Also I had used mesh deformation in the timeline a lot so I thought maybe that'd be the problem. Later I started fixing that and removed most mesh deformation and generally cleaned the timeline as I've learned a lot about spine in the meantime. The texture swapping still happens sometimes.
@Erikari suggested I key the draw order at the beginning and end of every animation. Did so, didn't solve the problem in all occasions.
Recently I've been working on another character, I've been working with a tidier rig from the beginning but this same texture swapping issue appeared at some point. I pinpointed the animations in which it happened and tried to fix by keying the draw order. It keeps coming out
It's driving me crazy because other files used in the studio in the same project don't have this issue. Some of them don't even have a key on the draw order at the end of each animation, but only where the draw order changes (naturally)
I also tried keying ALL slots at the beginning and end
Today the older character seems to work right, but I can't find what might have fixed it?
Last friday I spent hours doing any kind of tests, even keying the draw order on EVERY frame for a few animations, and still the swapping happened.
Coders tell me when an animation is overridden by another, it reads all the info at the beginning of the new animation, so I don't see how it doesn't get the draw order information from there each time (but that's as far as my understanding goes in the matter)
On the second character I mentioned, sometimes I clearly see the texture swapping after a certain animation is played, character goes back to idle and the issue remains for a loop, on the next loop of the idle animation it's fixed
???
Any idea?
Thank you!
(maybe this post belongs to the unity forum category but I'm only working in spine and don't know much of the unity part of this)
I'm on this, yup. Looking into the project to discover what went wrong