How do I change the color of "Label" when the mouse is over it

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By RetroDan007

Hello friends. I have a child node of textureButom and I want to change the color of the label when I pass the mouse over it

:bust_in_silhouette: Reply From: Shy_on

in the Inspector,go to texture - hover - new gradient texture there u will be able to select a color of ur choice

:bust_in_silhouette: Reply From: Wakatta

From the node tab connect the mouse_entered and mouse_exited signals Signals to your script.

func on_Label_mouse_entered():

func on_Label_mouse_exited():
:bust_in_silhouette: Reply From: simonlee

Instead of using a Label, you could use a LinkButton.

Using LinkButton, you can use a Theme Override, which allows you to set colors for Hover, Pressed, Focus, etc.

Theme Override for LinkButton