Problem editing a shader from script

Hello, I’m using Godot 4.2, and I have a question. I’m trying to change parameters of a shader in a ColorRect , but when I tried things like set_shader_param , it didn’t work.
I’d appreciate your help.

Try this:

material.set_shader_parameter("parameter_name", value)


thank you

1 Like