• 日本語
  • [Unity] Spine同士のパーツ毎の重なり

Spine A と Spine B が存在して、
Spine A が Spine B の後ろから抱きつく表示をしたい場合、
Spine A の腕は Spine B より手前に表示して、
Spine A の体は Spine B より奥に表示することになります。

こういった、各パーツ毎に表示順序を変更するといった設定は可能でしょうか。

Unityのスクリプトで対応可能なのであれば、やり方を知りたいです。

Related Discussions
...

これは、ここで説明するように、SkeletonRenderSeparatorを使用して可能です。
spine-unity Runtime Documentation: SkeletonRenderSeparator

Unityシーンの例は、https://github.com/EsotericSoftware/spine-runtimes/blob/4.0/spine-unity/Assets/Spine%20Examples/Other%20Examples/SkeletonRenderSeparator.unityにあります。

This is possible using the SkeletonRenderSeparator, as described here:
spine-unity Runtime Documentation: SkeletonRenderSeparator

You can find an example Unity scene here https://github.com/EsotericSoftware/spine-runtimes/blob/4.0/spine-unity/Assets/Spine%20Examples/Other%20Examples/SkeletonRenderSeparator.unity