- Home /
Multicolored line (path of the object)
I am trying to draw a path of certain moving object (in realtime) but the tricky part is that I need the path to reflect the object's speed by colour interpolation.
So, when the object is moving faster, the certain part of the path needs to be for example darker than parts where object was moving slower. Is there a way to achieve that?
Thanks!
You can set a color gradient to the line renderer but it only creates it through the entire path. Either you write your own line renderer or use multiple ones.
$$anonymous$$ight be able to do this by supplying a 1-by-N texture, where N is your number of points whose pixels correspond to the colors you want on the track.
Your answer
Follow this Question
Related Questions
LineRender: I can't seem to be able to set the start and end positions of the line 0 Answers
LineRenderer to show trajectory of GameObject 1 Answer
How do i cast mesh like a linerenderer? 0 Answers
Problem with Line Renderer 1 Answer
Issue drawing lines between buttons - Lines overlap the buttons 2 Answers