TextureRect adding borders

Godot Version

4.4.1

Question

I want to add border with a custom border-color on my TextureRect which has a texture inside. Is this possible? There is no option for on Themes section nor there is Theme Overwrite for texture rects anymore.

What if you used a margincontainer and put the border on that

1 Like

nope, you cant add/themeoverride style > border on a container (not even a margincontainer)

which gui element has this border ability? I just want to add 1 pixel red border to a textureRect :frowning:

No container has a border property, I meant that you should change the theme of the background panel (stylebox) of a container

1 Like