• Unity
  • Spine + NGUI sorting layer problem

Related Discussions
...

Hello, I use NGUI for interface and I need to show character in inerface. But I cannot make it draw properly.
I change

_meshRenderer.sortingOrder = _sortingOrder;

But it is not work, I need to draw character beetween NGUI sprites. Is there any solutions?

https://drive.google.com/open?id=1pAHCqeCw01nP09wHYa2d00ZnRt_VkDze

Are you using SkeletonAnimation or SkeletonGraphic (UI)? If you are using SkeletonAnimation, you could give SkeletonGraphic a try, since it behaves like a normal CanvasRenderer element.

Basically, setting _meshRenderer.sortingOrder should behave normally. Can you insert other MeshRenderer objects between sorting layers in NGUI?

I have changed shader to "Unlit/Transparent Colored", Layer to "Post Processing" and set sortingLayer and Order Layer to zero. It's works for now

Thanks for getting back to us, glad it works now.

7 days later

Seems it does not work. I have tried to chang sortingOrder of mesh renderer, orderInLayer in Skeleton class and also renderer queue in shader and when it is starts to work in one place it broke in other. Looking for some script or code example that can help make spine skeleton work as nhui widget (sprite)

On screen: character is beetween layers, but I cannot move behind other sprite, it works randomly