- Home /
Animation changing sprite sorting order in editor but not in builds?
In my game I animate the head, arms, and body of the human characters independently. Depending on the current state, the layer's need to be set differently for the animations to line up properly. I set the sorting order of the sprites via the animation. This works fine in the editor. However, in a build the animation fails to affect the sorting order. The rest of the animation works fine in both the editor and the builds. I've tried flushing the layer as described in a tangentially related issue here to no effect.
I've verified that the sorting order isn't changing with a script that checks for changes to the value. I get the expected output in the editor, but the values never change in the build.
I'm at a loss to why part of the animations wouldn't work in the build.
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Character mesh breaks when build 4 Answers
Geometry Problems in Unity game build 0 Answers
Changing default animation type to Humanoid via script 1 Answer
Store and Restore an object's state 1 Answer