[Aline] how to change the "sorting layer" for draw.Polyline

Hello
There is a tilemap in my project for building and I set his sorting layer to building (check the below image), but the line drawn by aline is showing over the building, I want the building showing over the Aline, would it be possible?

Hi

Sorry, it’s not possible to draw things in other sorting layers with ALINE.

Hello
There is a tilemap in my game and the line drawn by Aline is appearing above the tilemap, would it be possible that let the tilemap appear above the aline?

Hi

This is not possible at the moment. I’m afraid. Unless you make the tilemap write to the Z buffer (not sure if it does by default), render your things at a lower z coordinate, and set ALINE’s opacity behind objects to zero (can be set in the project settings).

It might be possible if you use stacked cameras, and make ALINE explictly only render to the bottom layer, but I’m not 100% sure.