在unity中,我试图用Spine组件来控制游戏角色,并启用unity的Transparancy Sort Axis来根据y轴动态调整角色和地图物品之间的遮挡关系。但是我发现,对于角色,unity使用中心点坐标来比较它和其他物体的y轴坐标,所以有时候遮挡关系有些不对劲。
如果使用sprite renderer,我可以调整图片的pivot位置,这样可以调整y轴的比较坐标。但是对于spine组件来说,我该怎样调整,以达到同样的效果呢?谢谢!
=====
In unity, I tried to use the Spine component to control the game characters, and enabled unity's Transparancy Sort Axis to dynamically adjust the occlusion relationship between characters and Tilemap items based on the Y-axis. But I found that for characters, unity uses the center point coordinates to compare it to the Y-axis coordinates of other objects, so sometimes the occlusion relationship is a little off.
If I use the sprite renderer, I can adjust the pivot position of the image so that I can adjust the Y-axis comparison coordinates. But for the spine component, how can I tweak it to achieve the same effect? Thank you!