Texture buttons focused texture overrides pressed texture

Godot Version

v4.2.2.stable.official.15073afe3

Question

In my texture buttons, the focused texture completely overrides the pressed texture. It seems as if I cannot have both of them coexist at once. How can I have it so that, the button’s focused texture can still be visible, but when the button is actually pressed, the pressed texture plays and overrides the focused texture?

It’s explained in the TextureButton.texture_focused documentation:

Texture to overlay on the base texture when the node has mouse or keyboard focus. Because texture_focused is displayed on top of the base texture, a partially transparent texture should be used to ensure the base texture remains visible.

1 Like