pastasfuture/com.hauntedpsx.render-pipelines.psx

Canvas order is not considered for non-Overlay legacy Canvas UI

thebeardphantom opened this issue · 4 comments

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
};

To be clear, this is specifically for Canvases set to Screen Space - Camera mode. Overlay mode sorts properly.

Huh, interesting. I was just encountering this issue today. Never ran into it before until now for some reason.

Fixed - thanks for reporting🖤