I am trying to fade consistently fade a Line Renderer by adjusting the color property of it's material. I got the code I'm using from the accepted answer to How can I fade a game object in and out over a specified duration?. When I used the Default-Line
material for the line renderer I got the following error:
Assertion failed: Material doesn't have a color property '_Color' UnityEngine.Material:get_color()
When I used the Default-Diffuse
material, nothing happened.
Finally, when I used the Sprites-Default
material it worked perfectly.
How can I make the line renderer fade out consistently based on different material?
No comments:
Post a Comment