ShaderGraph question.

Hello everyone! This is my first post on the forums. Help me plz

I was playing a bit with shadergraph. Then I tryed to change a Vector3 input in realtime. To keep track of the player’s position.

It reads the info but never used it. here I drop some images to Ilustrate the problem.

void Update:

mat.SetVector("PlayerPosition",player.transform.position);
        print(mat.GetVector("PlayerPosition"));
        RenderBatches();

the print result:

the Vector3 I accesed:

shader properties:

So, when i change color in runtime it works just fine, but the vector3 position wont.

Thx!

Welcome to the forums! (well you been here 5 years, but welcome anyway :stuck_out_tongue: ) You’ll probably have better luck getting an answer to a Shader Graph question in the Shader Graph forum rather than the scripting forum.