Canvas order is not considered for non-Overlay legacy Canvas UI
thebeardphantom opened this issue · 4 comments
thebeardphantom commented
Canvas order is ignored because PSXRenderPipeline.DrawLegacyCanvasUI()
does not use proper SortingCriteria
for the SortingSettings
instance created for rendering. This should do the trick:
var sortingSettings = new SortingSettings(camera)
{
criteria = SortingCriteria.CommonTransparent
};
thebeardphantom commented
To be clear, this is specifically for Canvases set to Screen Space - Camera mode. Overlay mode sorts properly.
PixelDough commented
Huh, interesting. I was just encountering this issue today. Never ran into it before until now for some reason.
thebeardphantom commented
PR: #21
pastasfuture commented
Fixed - thanks for reporting🖤