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

Method queue_free

scene/main/node.cpp:3475–3485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3473}
3474
3475void Node::queue_free() {
3476 // There are users which instantiate multiple scene trees for their games.
3477 // Use the node's own tree to handle its deletion when relevant.
3478 if (data.tree) {
3479 data.tree->queue_delete(this);
3480 } else {
3481 SceneTree *tree = SceneTree::get_singleton();
3482 ERR_FAIL_NULL_MSG(tree, "Can't queue free a node when no SceneTree is available.");
3483 tree->queue_delete(this);
3484 }
3485}
3486
3487void Node::set_import_path(const NodePath &p_import_path) {
3488#ifdef TOOLS_ENABLED

Callers 15

_close_selection_listMethod · 0.45
_scenes_clear_cellMethod · 0.45
remove_layerMethod · 0.45
setup_simulatorMethod · 0.45
_gui_cancel_tooltipMethod · 0.45
resetMethod · 0.45
_update_presetsMethod · 0.45
add_recent_presetMethod · 0.45
erase_presetMethod · 0.45
erase_recent_presetMethod · 0.45
remove_buttonMethod · 0.45

Calls 1

queue_deleteMethod · 0.80

Tested by

no test coverage detected