Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | obsercard_d |
So I’m having an issue with trying to use a tween to change a shader parameter.
I’m using the following:
tween.interpolate_property(get_node("."), "shader_param:cutoff",
0.0, 1.0, 1,
Tween.TRANS_EXPO, Tween.EASE_IN_OUT)
The inspector looks like this and this is the parameter I am trying to tween.
So the parameter definitely exists but I have no idea how to get its property to change because every time I try, this happens.
_build_interpolation: Tween target object has no property named: shader_param:cutoff.
I have tried “shader_param/cutoff” and “:shader_param:cutoff”…
I have looked through the docs for this and I can’t find anything about it. I am using v3.2.1.stable.official