Search code examples
godotgdscript

How do I set "StyleBoxEmpty" on buttons in Godot?


I'm trying to remove the blue box that appears around focused buttons in Godot. I saw here that it can be done with "StyleBoxEmpty", but the example picture is a broken link. I have looked through all the node properties, but I cannot find it. Can someone clarify how to enable this property?


Solution

  • Okay, I figured it out...

    To remove the unwanted blue "style box" border around focused buttons, do the following:

    1. In the inspector for the button node, scroll down until you find "Custom Styles", expand.
    2. Under the focus property, set the null value to StyleBoxEmpty.
    3. Done.