Search Unity

Line Renderer Bake Mesh Problem

Discussion in '2D' started by dev-waqas, Oct 7, 2019.

  1. dev-waqas

    dev-waqas

    Joined:
    Mar 14, 2017
    Posts:
    2
    My line renderer is working fine but I want to have a different color for each point on the line. But as my line contains more than 90 points I cannot change the color of more than 8 points because gradient supports max 8 colors. So now I want to import the line renderer mesh and pass my color data directly to shader but when I use Bake Mesh. My new mesh is very distorted as you can see in the attachment. Left is the new baked result while right is the line that I baked. Capture.PNG
     
  2. dev-waqas

    dev-waqas

    Joined:
    Mar 14, 2017
    Posts:
    2
    Well I fixed it. My parent object had a very large scale of 100. I can't delete a thread so it is here to stay.
     
  3. LiterallyJeff

    LiterallyJeff

    Joined:
    Jan 21, 2015
    Posts:
    2,807
    No need to delete it, if someone else has the same issue they might solve it using your answer.
     
  4. zacharyaghaizu

    zacharyaghaizu

    Joined:
    Aug 14, 2020
    Posts:
    65
    Hi,
    Please could you tell me how you got to that stage, mesh collider is only creating a Square at the first point of the line
     
    Last edited: Oct 28, 2020