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

Method set_process

scene/main/node.cpp:1015–1035  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1013}
1014
1015void Node::set_process(bool p_process) {
1016 ERR_THREAD_GUARD
1017 if (data.process == p_process) {
1018 return;
1019 }
1020
1021 if (!is_inside_tree()) {
1022 data.process = p_process;
1023 return;
1024 }
1025
1026 if (_is_any_processing()) {
1027 _remove_from_process_thread_group();
1028 }
1029
1030 data.process = p_process;
1031
1032 if (_is_any_processing()) {
1033 _add_to_process_thread_group();
1034 }
1035}
1036
1037bool Node::is_processing() const {
1038 return data.process;

Callers 7

make_visibleMethod · 0.80
make_visibleMethod · 0.80
make_visibleMethod · 0.80
make_visibleMethod · 0.80
make_visibleMethod · 0.80
test_node.hFile · 0.80
test_timer.hFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected