How to change the button image texture on hover?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Lindsay4047
:warning: Old Version Published before Godot 3 was released.

I want a button to have an image and then change the entire image when the mouse cursor hovers over it. Clicking the hover tick on the inspector just overlaps another texture over it. How would I completely change the button image on hover?

Thanks in advance!

:bust_in_silhouette: Reply From: RezaPouya

I don’t understand your question very well , but there is TextureButton node in Godot and it has " hover " property and you can assign different image to it … and as far as I know and I tested , it will change the image completely
( I add a big image , Normal property of TextureButton , then I added small image to Hover property , and when I run the game , it change the image completely

just use TextureButton node instead of Button node

That was it! Thanks so much. I was just using the wrong node. The regular Button node does have a hover property, but it keeps the main image (the Icon property) so that the hover image just overlaps it instead of replacing it. Thanks again.

Lindsay4047 | 2016-06-22 21:53