Search Unity

LineRenderer flips, distorts and doesn't render random segments!

Discussion in 'General Graphics' started by elpeedros, Jun 9, 2017.

  1. elpeedros

    elpeedros

    Joined:
    Jun 6, 2013
    Posts:
    14
    My line renderer behaves oddly.

    When alignment is set to Local, segments get flipped and others don't render.


    When alignment is set to View, corners get distorted.


    Why is this happening? Can I work around this or prevent it from happening?

    Using 5.6.0f3
     
  2. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,285
  3. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,285
    Also, when using Local mode, the lines will behave best when the points are defined using X and Y, and then the Transform is used to define the direction to face.
     
  4. neoshaman

    neoshaman

    Joined:
    Feb 11, 2011
    Posts:
    6,493
    Usually you would want to offset the "turning" point outside the curve, I mean consider there is a line in the middle of the mesh, when you turn you make an offset of that middle line toward the curve interior... does that make sense?
     
  5. ALargeTurkey

    ALargeTurkey

    Joined:
    May 29, 2017
    Posts:
    5
    Have there been any updates on this issue?