SubViewport Border Radius

Godot Version

4.3.stable

Question

Is there anyway I can add a border radius to a SubViewport, or it’s SubViewportContainer parent? I just need the bottom left and right corners to be curved, so it fits with the theme. Thanks in advance!

You can add a parent rounded mask image with clip children enabled

Still a bit new to Godot. What does that mean?

Looks like a PanelContainer may even be easier, make a PanelContainer a parent of your SubViewportContainer, in the visibility section enable “Clip Only”. You will need to override the panel style to be opaque and have your desired corner radius.

This works, thank you so much!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.