Shader in "Line" object seems can't get color property from outside.

I create a shader by shader graph and everything is fine until I want to get color property from outside(I mean the “Line” Object). Here are my shader graph nodes trying to get color property from outside:


I followed the tutorial from youtube:

used “Vertex Color”, but it doesn’t work to me. The “Line” object’s “Line Render” property is:


the object’s color is “orange”, but I tested directly connect to the “unlit master” node, it always white. Does anyone know how to fix this?

Everything looks correct to me. No idea why this wouldn’t be working. Try connecting the vertex color directly to the output? The only thing I can think of is it is orange, the graph is just multiplying it to be so bright that it appears white to you.