lllllfm

例如JSON_A和JSON_B两个动画结合,需要改变两个JSON间的SLOT排序方式。如何实现?
lllllfm
  • Posts: 1

Harald

最简单的方法是修改skeleton.drawOrder。这是对Slot的引用列表,你可以根据自己的喜好重新排序。
The easiest way is to change skeleton.drawOrder. This is a list of references to the Slots which you can re-order as you like.

只要确保你没有设置了绘制顺序关键帧的动画,这样当动画播放时就会覆盖绘制顺序。
Just be sure that you don't have animations which have draw-order keyframes set, which would then overwrite the draw order when the animation is played.
User avatar
Harald

Harri
  • Posts: 2075


Return to 中国Spine用户