Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug LineRendererExample code does not works.

Discussion in 'Documentation' started by Hiromichi-Yamada, May 17, 2021.

  1. Hiromichi-Yamada

    Hiromichi-Yamada

    Joined:
    Feb 16, 2013
    Posts:
    3
  2. BrightBit

    BrightBit

    Joined:
    Jan 22, 2013
    Posts:
    264
    You're right. The assignment of the points to the line renderer is missing in the example.

    In case you didn't find out how to fix it: Just add the line

    lineRenderer.SetPositions(points.ToArray());


    to the end of the GeneratePoints() method.
     
  3. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,275
    Thanks for raising this issue, I will update the documentation for it!
     
    BrightBit likes this.