Search Unity

How do I control the width vector direction of a Line Renderer

Discussion in 'General Graphics' started by LesBloom, Jun 6, 2019.

  1. LesBloom

    LesBloom

    Joined:
    Feb 2, 2017
    Posts:
    167
    Hello,

    Here is a snapshot of my issue

    upload_2019-6-6_15-2-44.png

    My Line Renderer is using alignment.transformZ.

    I want to control the tangent vector that is used to apply the width.

    I had assumed I just need to rotate the XY plane in local space, but all manor of rotations fail to give me my results.

    Any help would be appreciated.
    Thank you
     
  2. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,285
    Hi, the built-in line renderer doesn't give you any control over that.
     
  3. LesBloom

    LesBloom

    Joined:
    Feb 2, 2017
    Posts:
    167
    So there is nothing I can do (with Unity's LineRenderer) to make these line up?