Weird error involving focus mode & Godot 3.3

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By slightly_seasoned

So I’ve just updated Godot & decided to run my “game” to see what has changed, & this weird error just pops out saying, “set_enabled_focus_mode: BaseButton’s Enabled Focus Mode property has been deprecated due to redundancy and will be removed in Godot 4.0. Please use Control.set_focus_mode instead.” I usually fix errors like this really quick, but I have no idea what “focus mode” is.

:bust_in_silhouette: Reply From: exuin

Check out the documentation here. Bascially, focus mode just controls if and how the node can receive focus. Focus determines whether the node can be interacted with with the keyboard (pressing enter to press a focused button for example).

(For BaseButton, enabled_focus_mode is redudant and “and no longer has any effect when set”. That’s why it’s deprecated.)

Can I disable it somehow? I don’t know if it’s disabled/enabled.

Edit: figured it out.

slightly_seasoned | 2021-04-24 21:43

Yeah you have to hit the arrow next to enabled focus to reset it back to “All”

exuin | 2021-04-24 23:47

I’ve tried all 3 options for enabled focus mode and I still get the warning. Is there a way to fix it so the warning goes away?

cybereality | 2021-04-28 15:33

That’s weird, maybe you can disable it in editor settings?

exuin | 2021-04-28 16:15