Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Sprite mask for line renderer?

Discussion in '2D' started by zakariaszobel, Jul 28, 2022.

  1. zakariaszobel

    zakariaszobel

    Joined:
    Jan 27, 2022
    Posts:
    3
    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?
    Skærmbillede 2022-07-28 180524.png
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    39,102
    maclark86 likes this.