+2 votes


I want animate changing texture with Tween when user hover on button but I dont know clearly how to do that.

In the simple way I just want delay change texture from normal to hover because it's changing to fast.

For example like there:

in Engine by (14 points)
edited by

1 Answer

+1 vote

Unfortunately, there is none such feature implemented yet.

If it's only about a single color changing slower you could use an AnimationPlayer node, add an animation where the color of the button is changing to the color you want. Then connect the signal mouse entered of your Button and start the animation via code. The same for exiting the button. (Well, I know this is a lot to for such a thing, but...)
Would recommend to change the color of the button by animating the property self modulate in the inspector. You could also change the color of a TextureButton this way.

Good Luck

by (864 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.