+1 vote

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

Godot version 3.3
in Engine by (58 points)

1 Answer

0 votes

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.)

by (8,012 points)

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

Edit: figured it out.

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

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?

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

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.