Draw on UI Canvas

Hi, is there any way I can draw and render on a UI Canvas and not in world space?

My game is rendering the main camera to a texture that is displayed on a UI Canvas and render to texture does not render ALINE to the texture.

It would be nice to be able to render to texture and also directly render to the UI Canvas so I can use it to debug UI elements.

Hi

You can draw in screen space using

using(Draw.InScreenSpace()) {
    Draw.WireRectangle(new Rect(100, 100, 200, 200), Color.red);
}

I think that should allow you to do what you want.