Hey, Currently I'm using a NinePatchRect above a Button with a StyleBoxTexture that uses a GradientTexture2D (thanks, Goost). However, I would like to combine both these (an AtlasTexture and a GradientTexture2D) into one StyleBoxTexture for ease of management/not littering NinePatchRects everywhere. Is this even possible?

With hope, radzo73

Welcome to the forums @radzo73!

I do not think it’s possible, unfortunately. You could perhaps use two StyleBoxTextures and/or have the button transparent with no texture (set flat to true) and then use other nodes to fill in the texture. You might also be able to combine the textures together using a Viewport and then use the Viewport texture as the texture in the StyleBoxTexture.

You could perhaps use two StyleBoxTextures Is it possible to assign more than one StyleBox to a Style?

@radzo73 said:

You could perhaps use two StyleBoxTextures Is it possible to assign more than one StyleBox to a Style?

I don't think so. What I meant, and poorly described (sorry :sweat_smile: ) was that you could have the button use a StyleBox to the button, and then use another node rendered on top with the other StyleBox. Then the second StyleBox could be transparent or use a CanvasMaterial with the mode set to add, which might also work.

a year later