- Змінено
[ Unity ] Layering 3d objects with 2d Spine elements
Hi,
I have a question about sorting 2d spine \3d objects in unity. Anyone have any ideas on how to solve this?
I'd like to render 3d objects in between my spine character.
Think a 3d sphere in between 2d Spine objects.
Attached is a mockup. I tried looking for the SkeletonComponent.cs to adjust the z depth, but couldn't find it.
Зображення видалено через відсутність підтримки HTTPS. | Показати в будь-якому випадку
Thanks for the help! :nerd:
sharin' is carin'
https://twitter.com/IndieNendoroid
It's been a while, hasn't it?
Can you give this a quick look and see if this is what you needed? https://github.com/pharan/spine-unity-docs/blob/master/SkeletonRenderSeparator.md
This is a sorting thing, which is both dependent on render order and whether or not the shaders you are using utilizes the depth buffer.
@[видалено]
Yep this was it! Thanks alot!
For anyone else that wants to use this, I found you'll need to disable the checkbox on your main gameobject and enable it again before the separator can work.
In the editor? That's strange. I haven't seen the same behavior.
At runtime, it should work just fine.