Draw a polygon over a UI image with Aline

Is it supported to draw a polygon over a UI? Currently I’m using UILineRenderer to draw it but it will generate lots of garbage.

Hi

Sorry. Currently, this is not supported.

It’s possible to do using a separate camera that you render to with aline, and then you use a render texture that is drawn on top of the UI. This is also pretty inefficient, though, so I don’t think I would recommend it.