Set a uniform variable with godot C#
I am trying to to set a uniform variable to my canvas_item shader in godot. I want to set the uniform variable from code and not from the inspector. I dont find anywhere a method to do this. I have tried to use the function "GetMaterial()" of the sprite to with the shader is set but it doesnt give anything....
Has someone already done that ?
Thanks a lot. Regards.