Question by
FunkyCat · Apr 24, 2020 at 08:49 AM ·
uicanvassortingsorting order
Render canvas inside Sorting Group
Hello, I have a prefab, which includes a few sprites, and a canvas, so my hierarchy looks like this:
PrefabRoot
- - Sprite 1
- - Canvas
- - - UI Image
- - - UI Text
- - Sprite 2
I also set render orders so now Sprite1 renders behind Canvas, and Canvas is behind Sprite2.
Now, I add Sorting Group to the PrefabRoot, because I want to create a few instanses of that prefab and I want them to render as a single object. But this doesn't affect my Canvas, and it's elements still have a global sort order.
Is there a way to make Canvas render inside Sorting Group?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612232331im_/https://answers.unity.com/themes/thub/images/avi.jpg)