Sorting groups equivalent

Avatar
  • updated
  • Answered

Is there any approach with Shapes that can be used to give similar sorting results to how sorting groups work with Sprite Renderers. I'm using Shapes by instancing many prefabs which each have multiple shapes that have to be drawn in a certain order with respect to the prefab, but I also want each prefab instance to be drawn together as one group.

Reporting a bug? please specify Unity version:
Reporting a bug? please specify Shapes version:
Reporting a bug? please specify Render Pipeline:
Built-in render pipeline
Avatar
Freya Holmér creator
  • Answered

right now there's no sorting group component that will give you that behavior I'm afraid, unless Unity's sorting group component also magically works for shape components, but I'm guessing it's not since Shapes uses MeshRenderers rather than SpriteRenderers

Avatar
Marco M

Hi Freya, thanks for the response. I discovered that sorting groups does in fact work with Shapes. I'm sure when I originally tried, it didn't. So either I was being dumb or Unity has since added it for MeshRenderers (most likely the former).