Make line appear behind UI Screenspace Canvas

  • ALINE version: 1.7.8
  • Unity version: 6000.0.47f1
  • Render pipeline: URP

How do I get ALINE to render a line on top of a Screenspace UI Canvas using a command buffer?

I’m using var draw = Draw.ingame to setup my draw.

Hi

This is not easily possible, I’m afraid.

You could technically use separate cameras that are rendered to RenderTextures, and then blit those together in the way you want. But that has some memory and performance overhead.

I found a workaround. Put a solid black plane behind my canvas and that acts as an occluder. Bit of a hack but works for now, thanks.

1 Like