Search Unity

2D Pixel Line Renderer

Discussion in '2D' started by AnthonySturdy, Jun 20, 2017.

  1. AnthonySturdy

    AnthonySturdy

    Joined:
    Feb 24, 2014
    Posts:
    55
    I'm currently creating a grapple hook in my 2D game, but I'm having trouble with keeping the pixel art style. I can't use a normal LineRenderer because the pixel ratio is different, and I can't just rotate another sprite because then the pixels are rotated and it'll look strange.
    I'm using a Pixel Rotation asset at the moment but it doesn't support scaling objects well, so I was wondering if anyone knows of a way to draw a pixelated line from one point to another? Or if there's an asset which would do something similar. It's just to keep the pixel art aesthetic.

    Thanks, Anthony.
     
  2. LiterallyJeff

    LiterallyJeff

    Joined:
    Jan 21, 2015
    Posts:
    2,807