I’m using UI Extensions (https://bitbucket.org/ddreaper/unity-ui-extensions) class UILineRenderer to draw graphs. I achieved what I wanted on the middle graph by changing Z-axis of certain objects by little amount.
But can I place canvas and all children objects in the same position and somehow choose which one overlays another? I’d like to make canvas (1) on the bottom, graph information (2) in the middle and graph itself (3) showing on top of it.
Canvas come with a sorting layer and an Order in layer. You can use both to position different canvas.
If it’s children within the canvas, your childrens order will determine in which order they are drawn (when using ui elements). The first child is drawn first, then the second, etc.
Thanks you were right about children drawning in canvas. I had an clipping issue because one of the objects in canvas had normal material instead of sprite.