Any way to auotmatically generate TextureButton pressed image?

Godot Version

4.4.1

Question

I’d like to set up TextureButton with simple svg graphics like
image

It would be nice if the TextureButton could automatically generate an alternate ‘pressed’ image so I don’t have to create a second version of the button in its pressed state. I know some the APIs in other platforms will have some way to display an image button as pressed by just altering the normal image. I was wondering if Godot had the same capacity? Or maybe some other way to do it so that I don’t have to create separate ‘pressed’ states for all my icons?

1 Like

Nope. You could do it though. Just tie the various signals to your code and alter the image in code using the modulate property or a shader.