Sprite mask for line renderer?

Im currently making a mobile game in version 2020.33f1

I have these hexagon shaped walls closing in on the player:

As you can see, the edges don’t look too great.
I found out that you could use sprite masks to hide areas, but they don’t seem to support linerenderers.
Is there any way you can make a sprite mask like script to work with Line renderers?
8319048--1091856--Skærmbillede 2022-07-28 180524.png

If you check out the docs:

You will see this line:

The Sprite Mask only affects objects using the Sprite Renderer

LineRenderers are awesome but they have their limitations when it comes to endcaps and mitering.

You may wish to consider a more full-featured solution such as Vectrosity:

1 Like