Berain 下图是我的spine主角的Inspect信息,使用的Shader是Spine/Skeleton,Sorting Layer是Default。 下图是我的Entity怪物(在unity的SubScene以ECS的方式烘焙出来)。 由于unity的Entity没有Sorting Layer和Order in Layer,导致spine角色会一直渲染在Entity怪物的上面,无论Z轴如何,这有什么办法解决吗?
Harald @Berain You have the following options to solve the issue: Adjust the Render Queue of either the skeleton material or the entity material (hidden under Queue Control in your used entity Material) to be exactly the same. Then normal sorting order should be applied to all objects. Alternatively you can use a different shader at the Skeleton which writes to the depth buffer, which Spine/Skeleton does not. You can have a look here about which shaders write to the z-buffer. Use the same shader at both the Skeleton and the entities. You could go either way, either using Spine/Skeleton at both, or using your Shader Graph shader at both (note that then you need to use Straight alpha at the skeleton atlas texture export).