How to add custom background to button?

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


you know how the standard button background is in this grey color? I want to change that with a pixelart background i made (.png). But i can´t wrap my head around how to do this.

I tried:

  • adding the texture as an Icon (which apparently is something completely different from what i have in mind with “background”!?)
  • adding a so-called “theme”, but this opened something very complicated looking and i´m scared
  • adding the texture with an unnecessary workaround that needs a button, a sprite AND a label which can´t be right, there must be an easier option, right?

And just to visual my problem:

I want this
enter image description here

To be this
enter image description here

:bust_in_silhouette: Reply From: Wakatta

Themes are definitely the way to go but since you’re afraid you can use
StyleboxTexture Custom Styles instead on a simple Button Node
also do the ones for Hover, Pressed, Focus and Disabled


Thanks, exactly what i was looking for!

Oian | 2020-12-30 00:58

:bust_in_silhouette: Reply From: abcd1231406

You can use TextureButtons ~