A small Godot tip if you want to have nodes (ex: debug button) that only exists when the game runs in the editor (ex: by pressing F5), use:
✅ OS.has_feature("editor")
❌ Engine .is_editor_hint()
Is for "@ tool" scripts inside editor.
A small Godot tip if you want to have nodes (ex: debug button) that only exists when the game runs in the editor (ex: by pressing F5), use:
✅ OS.has_feature("editor")
❌ Engine .is_editor_hint()
Is for "@ tool" scripts inside editor.