Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity line renderer opacity

//Create a new material for your line renderer and select shader "Particles/Standard Unlit", set "Rendering mode" to "Fade". Then use it on Line Renderer instead of the default material.

renderer.material.SetColor("_Color", new Color(1f, 1f, 1f, 0.3f));
 
PREVIOUS NEXT
Tagged: #unity #line #renderer #opacity
ADD COMMENT
Topic
Name
3+7 =