Custom HSlider texture

Godot Version

4.3

Question

Do anyone know how to set a custom slider texture by using own image?
Any help will be appreciated.

you use a theme.
look up a tutorial on themes or read the docs.

in your theme you add a slider or create a variant and there you can set styleboxes for the different parts of the control, and these can be flat, empty, or styleboxtexture, which will allow you to use a texture and also set 9patch, tiling, shadows, and many more effects.

1 Like

So when i have the theme and the slider texture do you know what i should do next?

you press the plus(+) button in the corner and add a slider control node. then in the rainbow icon tab you set the styleboxes.

Yea i did it but the texture didnt expand, i tryied it before i made this post and thats why i am asking.

I didn’t sadly.