- ColorKey value doesn’t work as with the screenshot attached.
- Is there any way to apply ColorKey value?
If you mean the color gradient of the linerenderer, yes.
Go to the package manger and install “Particle System Shader Samples” in the High Definition RP
Then create a Material and set the Shader to “Shader Graphs/ParticleLit”

Apply this material to your LineRenderer and the Color Gradient will show up.
Why does this work? Because the LineRenderer uses VertexColors, like the ParticleSystem does. You can also create your own shader and use the “Vertex Color” Node in ShaderGraph.
3 Likes


