Tuesday, May 24, 2016

unity - How to fade determine properties to fade materials out for the line renderer


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

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...