0 votes

I want a button to glow when I click it.

in Engine by (381 points)

Have you tried using a texture button?

No, how do you imagine that?

Do you mean that you want a light source on the button when clicked and it goes away when done.

Yes, but I want it so that the light goes over the edge of the button too.

2d or 3d? (sorry for long response internet outage)

2 Answers

0 votes

you can create a set of custom StyleBoxTextures that you can use to define a button in a theme or in the CustomStyles section of the button
the focus style will highlight the selected button and the pressed style will highlight the pressed button etc
example custom buttons and theme here: https://github.com/rakkarage/PixelInterface

by (1,884 points)

The link doesn't work :(

Sorry, today morning I couldn't open any github websites. Now I can, but I still don't know why it didn't work.

0 votes

You can use a StyleBoxFlat as a pressed style. Increase its shadow size and give it a light color such as white or yellow.

by (12,835 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.