Thursday, March 26, 2015

Unity C# - Change color, or material of specific line segments on Line Renderer


enter image description here


We're making a game that plays with a LineRenderer, and we want to give it a different visual feedback relative to the side of the screen that it's on.


We want to change the feedback of the specific line segments that are on the other side (when they past the middle point).


The API lets you map the segments positions, but isn't there a way that you can change the material/color of that specific segment? I just see that you can do it, but only for the whole Line Renderer, not segment-by-segment.




No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...