MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / _node_selected

Method _node_selected

editor/editor_interface.cpp:553–564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

551}
552
553void EditorInterface::_node_selected(const NodePath &p_node_path, const Callable &p_callback) {
554 const Callable callback = callable_mp(this, &EditorInterface::_node_selected);
555 node_selector->disconnect(SNAME("selected"), callback);
556 node_selector->disconnect(SNAME("canceled"), callback);
557
558 if (p_node_path.is_empty()) {
559 _call_dialog_callback(p_callback, NodePath(), "node selection canceled");
560 } else {
561 const NodePath path = get_edited_scene_root()->get_path().rel_path_to(p_node_path);
562 _call_dialog_callback(p_callback, path, "node selected");
563 }
564}
565
566void EditorInterface::_property_selected(const String &p_property_name, const Callable &p_callback) {
567 const Callable callback = callable_mp(this, &EditorInterface::_property_selected);

Callers

nothing calls this directly

Calls 5

rel_path_toMethod · 0.80
disconnectMethod · 0.65
NodePathClass · 0.50
is_emptyMethod · 0.45
get_pathMethod · 0.45

Tested by

no test coverage detected