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

Method add_node

editor/inspector/multi_node_edit.cpp:243–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243void MultiNodeEdit::add_node(const NodePath &p_node) {
244 nodes.push_back(p_node);
245
246 Node *es = EditorNode::get_singleton()->get_edited_scene();
247 if (es) {
248 Node *node = es->get_node_or_null(p_node);
249 if (node) {
250 node->connect(CoreStringName(property_list_changed), callable_mp(this, &MultiNodeEdit::_queue_notify_property_list_changed));
251 }
252 }
253}
254
255int MultiNodeEdit::get_node_count() const {
256 return nodes.size();

Callers 5

gui_inputMethod · 0.45
_tool_selectedMethod · 0.45
_notificationMethod · 0.45
_post_do_createMethod · 0.45
set_selectionMethod · 0.45

Calls 4

get_node_or_nullMethod · 0.80
connectMethod · 0.65
push_backMethod · 0.45
get_edited_sceneMethod · 0.45

Tested by

no test coverage detected